Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

DROP PARTITION SCHEME (Transact-SQL)

Removes a partition scheme from the current database. Partition schemes are created by using CREATE PARTITION SCHEME and modified by using ALTER PARTITION SCHEME.

Topic link icon Transact-SQL Syntax Conventions


DROP PARTITION SCHEME partition_scheme_name [ ; ]
partition_scheme_name

Is the name of the partition scheme to be dropped.

A partition scheme can be dropped only if there are no tables or indexes currently using the partition scheme. If there are tables or indexes using the partition scheme, DROP PARTITION SCHEME returns an error. DROP PARTITION SCHEME does not remove the filegroups themselves.

The following permissions can be used to execute DROP PARTITION SCHEME:

  • ALTER ANY DATASPACE permission. This permission defaults to members of the sysadmin fixed server role and the db_owner and db_ddladmin fixed database roles.

  • CONTROL or ALTER permission on the database in which the partition scheme was created.

  • CONTROL SERVER or ALTER ANY DATABASE permission on the server of the database in which the partition scheme was created.

The following example drops the partition scheme myRangePS1 from the current database:

DROP PARTITION SCHEME myRangePS1;
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.