Dropping of Partition in SQL SERVER


Drop a Partition Function
To drop a partition function it should not have any partition scheme associated with it.
The Syntax is as follows
  DROP PARTITION FUNCTION < Partition Function Name >
The below example shows how to drop a partition function
  DROP PARTITION FUNCTION EmployeePartitionLeft
Drop a Partition Scheme
To drop a partition scheme it should not have any table associated with it.
The Syntax is as follows
  DROP PARTITION SCHEME < Partition Scheme Name >
The below example shows how to drop a partition scheme
  DROP PARTITION SCHEME EmployeePartitionScheme

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