On a table I have created a partition based on Year I have data from 2008 onwards I have created following partitions 2008, 2009, 2010 and Primary. Since primary has data for 2011 and 2012, I want to split the primary partition
I created a new file group for 2011. I ran the script for splitting the primary partition
ALTER PARTITION SCHEME [PartScheme] NEXT USED [FG2011]
GO
ALTER PARTITION FUNCTION PartFunction() split Range (20111231)
GO
after this the primary partition is getting split, but the data for the year 2011 is in primary partition and the data for the year is in 2011 partition.
partition_number FileGroupName value
1 FG2008 20081231
2 FG2009 20091231
3 FG2010 20101231
4 PRIMARY 20111231
5 FG2011 NULL
I want the Partition for the current year that is 2012 to be in Primary. How can this be done?