Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Partitioning question?

Author  Topic 

Bill_C
Constraint Violating Yak Guru

299 Posts

Posted - 2012-04-02 : 05:58:56
I have a large table which is (left) partitioned into three monthly segments :-

31/03/2009, 30/06/2009, 30/09/2009, 31/12/2009
31/03/2010, 30/06/2010, 30/09/2010, 31/12/2010
31/03/2011, 30/06/2011, 30/09/2011, 31/12/2011
31/03/2012, 30/06/2012, 30/09/2012, 31/12/2012

If I want to merge older data into bigger partiions and i run the following:-

ALTER PARTITION FUNCTION fn_mypartitionfunction()
MERGE RANGE ('31/03/2010')

I assume the data pre this date would all be merged into that quarter?

Now if i ran this code after

ALTER PARTITION FUNCTION fn_mypartitionfunction()
MERGE RANGE ('31/03/2011')

would the initial merge be swallowed up into one large dataset '31/03/2011' or would it reatin my original merge of '31/03/2010' giving me two large datasets?


Sachin.Nand

2937 Posts

Posted - 2012-04-03 : 05:01:45
No the data will be merged into a larger dataset with range starting from '31/03/2011'

After Monday and Tuesday even the calendar says W T F ....
Go to Top of Page

Bill_C
Constraint Violating Yak Guru

299 Posts

Posted - 2012-04-03 : 07:01:59
Thanks.

Go to Top of Page
   

- Advertisement -