I created a partition scheme with:
CREATE PARTITION SCHEME IQPScheme_Right AS PARTITION IQPFN_FinalizeDateRight ALL TO ([PRIMARY])
I then created a partition function with:
CREATE PARTITION FUNCTION IQPFN_FinalizeDateRight (DATE)
AS RANGE RIGHT FOR VALUES ('06/22/2014', '07/22/2014', '08/22/2014', '09/22/2014', '10/22/2014', '11/22/2014',
'12/22/2014', '01/22/2015', '02/22/2015', '03/22/2015', '04/22/2015', '05/22/2015',
'06/22/2015', '07/22/2015', '08/22/2015', '09/22/2015', '10/22/2015', '11/22/2015')
Now I want to expand the dates in the partition function, which I know I can do with ALTER PARTITION FUNCTION.
Do I need to also alter the SCHEME? I ask ONLY because when I script out the scheme, I get the following:
CREATEPARTITIONSCHEME [IQPScheme_Right]AS PARTITION[IQPFN_FinalizeDateRight] TO ([PRIMARY],[PRIMARY], [PRIMARY],[PRIMARY],[PRIMARY], [PRIMARY],[PRIMARY],[PRIMARY], [PRIMARY],[PRIMARY],[PRIMARY], [PRIMARY],[PRIMARY],[PRIMARY], [PRIMARY],[PRIMARY],[PRIMARY], [PRIMARY])
How come I used the “ALL TO” verb when creating the partition scheme SQL created on entry for every entry in the partition function??????
Does this mean I need to ALSO expand the scheme? If so, how????
Thank you.
André