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

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

2012 - > 2013 : Happy New Year

Visual Studio 2013 and .NET 4.5.1