I have question about partition scheme. The partition scheme has a starting partition filegroup "Inv_200806"which
is repeating twice. This scheme and function is already in use on the tables. I was wondering why does this partition filegroup is
repeating twice. Is it normal or recommended to do that?
Also, does this mean that Inv_200806 is a default/primary partition filegroup after
we do purging on the partitions and insert the data again in a table (which falls under purge boundary range)?
FYI: When I checked the boundary range of both Inv_200806 filegroup,
first one has NULL boundary range and the second has "2008-06-01T00:00:00.000'".
Any help /guidance would be appreciated.
Thanks!
CREATE PARTITION FUNCTION [pf_Inventory] (DATE) AS RANGE RIGHT
FOR
VALUES (
N'2008-03-01T00:00:00.000'
,N'2008-04-01T00:00:00.000'
,N'2008-05-01T00:00:00.000'
,N'2008-06-01T00:00:00.000'
,N'2008-07-01T00:00:00.000'
,N'2008-08-01T00:00:00.000'
,N'2008-09-01T00:00:00.000'
,N'2008-10-01T00:00:00.000'
,N'2008-11-01T00:00:00.000'
,N'2008-12-01T00:00:00.000'
,N'2009-01-01T00:00:00.000'
,N'2009-02-01T00:00:00.000'
,N'2009-03-01T00:00:00.000'
,N'2009-04-01T00:00:00.000'
,N'2009-05-01T00:00:00.000'
,N'2009-06-01T00:00:00.000'
,N'2009-07-01T00:00:00.000'
,N'2009-08-01T00:00:00.000'
,N'2009-09-01T00:00:00.000'
,N'2009-10-01T00:00:00.000'
,N'2009-11-01T00:00:00.000'
,N'2009-12-01T00:00:00.000'
,N'2010-01-01T00:00:00.000'
,N'2010-02-01T00:00:00.000'
,N'2010-03-01T00:00:00.000'
,N'2010-04-01T00:00:00.000'
,N'2010-05-01T00:00:00.000'
,N'2010-06-01T00:00:00.000'
,N'2010-07-01T00:00:00.000'
,N'2010-08-01T00:00:00.000'
,N'2010-09-01T00:00:00.000'
,N'2010-10-01T00:00:00.000'
,N'2010-11-01T00:00:00.000'
,N'2010-12-01T00:00:00.000'
,N'2011-01-01T00:00:00.000'
,N'2011-02-01T00:00:00.000'
,N'2011-03-01T00:00:00.000'
,N'2011-04-01T00:00:00.000'
,N'2011-05-01T00:00:00.000'
,N'2011-06-01T00:00:00.000'
,N'2011-07-01T00:00:00.000'
,N'2011-08-01T00:00:00.000'
,N'2011-09-01T00:00:00.000'
,N'2011-10-01T00:00:00.000'
,N'2011-11-01T00:00:00.000'
,N'2011-12-01T00:00:00.000'
,N'2012-01-01T00:00:00.000'
,N'2012-02-01T00:00:00.000'
,N'2012-03-01T00:00:00.000'
,N'2012-04-01T00:00:00.000'
,N'2012-05-01T00:00:00.000'
,N'2012-06-01T00:00:00.000'
,N'2012-07-01T00:00:00.000'
,N'2012-08-01T00:00:00.000'
,N'2012-09-01T00:00:00.000'
,N'2012-10-01T00:00:00.000'
,N'2012-11-01T00:00:00.000'
,N'2012-12-01T00:00:00.000'
,N'2013-01-01T00:00:00.000'
,N'2013-02-01T00:00:00.000'
,N'2013-03-01T00:00:00.000'
,N'2013-04-01T00:00:00.000'
,N'2013-05-01T00:00:00.000'
,N'2013-06-01T00:00:00.000'
,N'2013-07-01T00:00:00.000'
,N'2013-08-01T00:00:00.000'
,N'2013-09-01T00:00:00.000'
,N'2013-10-01T00:00:00.000'
,N'2013-11-01T00:00:00.000'
,N'2013-12-01T00:00:00.000'
)
CREATE PARTITION SCHEME [ps_Inventory] AS PARTITION [pf_Inventory] TO (
[Inv_200806]
,[Inv_200803]
,[Inv_200804]
,[Inv_200805]
,[Inv_200806]
,[Inv_200807]
,[Inv_200808]
,[Inv_200809]
,[Inv_200810]
,[Inv_200811]
,[Inv_200812]
,[Inv_200901]
,[Inv_200902]
,[Inv_200903]
,[Inv_200904]
,[Inv_200905]
,[Inv_200906]
,[Inv_200907]
,[Inv_200908]
,[Inv_200909]
,[Inv_200910]
,[Inv_200911]
,[Inv_200912]
,[Inv_201001]
,[Inv_201002]
,[Inv_201003]
,[Inv_201004]
,[Inv_201005]
,[Inv_201006]
,[Inv_201007]
,[Inv_201008]
,[Inv_201009]
,[Inv_201010]
,[Inv_201011]
,[Inv_201012]
,[Inv_201101]
,[Inv_201102]
,[Inv_201103]
,[Inv_201104]
,[Inv_201105]
,[Inv_201106]
,[Inv_201107]
,[Inv_201108]
,[Inv_201109]
,[Inv_201110]
,[Inv_201111]
,[Inv_201112]
,[Inv_201201]
,[Inv_201202]
,[Inv_201203]
,[Inv_201204]
,[Inv_201205]
,[Inv_201206]
,[Inv_201207]
,[Inv_201208]
,[Inv_201209]
,[Inv_201210]
,[Inv_201211]
,[Inv_201212]
,[Inv_201301]
,[Inv_201302]
,[Inv_201303]
,[Inv_201304]
,[Inv_201305]
,[Inv_201306]
,[Inv_201307]
,[Inv_201308]
,[Inv_201309]
,[Inv_201310]
,[Inv_201311]
,[Inv_201312]
)
ZK