SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Splitting Partition
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ryanlcs
Yak Posting Veteran

62 Posts

Posted - 05/23/2010 :  03:51:51  Show Profile  Reply with Quote
Hi

I have create database partition, perform switching, partition merging , and all of those works fine. The next thing I wanted is split the partition.

At first, it gives errors, saying "The associated partition function 'function_name' generates more partitions than there are file groups mentioned in the scheme 'Scheme_name'".

Then I add another file group in order to split the partition. With the following code.
Alter database [DB_Name] add FILEGROUP [Filegroup_Name]
go
alter database [DB_Name]
ADD FILE
(NAME = 'Filegroup_Name',
FILENAME =
'Physical_File_Name',
SIZE = 5MB,
MAXSIZE=500,
FILEGROWTH=1 )
TO FILEGROUP [Filegroup_Name]
Go

After the above step, I able to split the partition. Later, I perform same steps again, switch partition, merge partition. As of now, things were OK. Then I need another split here. But, I hit the same error again, I know by creating new file group, the problem should be solved. But, I do not want to create new file group, cos by doing, it seems like never ending story of new file group creation.

Is there any other way I can split the partition withing current file group?

Please advice.

Thanks.
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000