Adding New Partition in SQL SERVER

The adding of a new partition is nothing we are splitting an existing one and creating another out of that.


The splitting is done by using the alter partition command. We have to note that before we split the partition there should be a additional filegroup already associated in the partition scheme. If there is no unused filegroup available then we cannot split. So before splitting we have to ensure that a filegroup is added to the partition scheme


The syntax is as follows


ALTER PARTITION FUNCTION partition_function_name() { SPLIT RANGE ( boundary_value ) | MERGE RANGE ( boundary_value ) } [ ; ]


The below example shows how to add a new partition by the SPLIT option 


ALTER PARTITION FUNCTION EmployeePartitionLeft () SPLIT RANGE (150)

Comments

Popular posts from this blog

Jesus - God Thinks of you.

ASP.NET 4.0 Feature - URL Routing

Tips on JQuery Intellisense in VS 2008