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

Building application using ASP.NET MVC and MongoDB

“Unable to retrieve the metadata for …” Error while using ASP.NET MVC 3

Getting Started with ASP.NET MVC, SignalR KnockoutJS