Events
Mar 31, 11 p.m. - Apr 2, 11 p.m.
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server
Azure SQL Database
Azure SQL Managed Instance
Drops an existing selective XML index or secondary selective XML index in SQL Server. For more information, see Selective XML Indexes (SXI).
Transact-SQL syntax conventions
DROP INDEX index_name ON <object>
[ WITH ( <drop_index_option> [ ,...n ] ) ]
<object> ::=
{ database_name.schema_name.table_or_view_name | schema_name.table_or_view_name | table_or_view_name }
<drop_index_option> ::=
{
MAXDOP = max_degree_of_parallelism
| ONLINE = { ON | OFF }
}
index_name
Is the name of the existing index to drop.
< object> Is the table that contains the indexed XML column. Use one of the following formats:
database_name.schema_name.table_name
database_name..table_name
schema_name.table_name
table_name
<drop_index_option> For information about the drop index options, see DROP INDEX (Transact-SQL).
ALTER permission on the table or view is required to run DROP INDEX. This permission is granted by default to the sysadmin fixed server role and the db_ddladmin and db_owner fixed database roles.
The following example shows a DROP INDEX statement.
DROP INDEX sxi_index ON tbl;
Selective XML Indexes (SXI)
Create, Alter, and Drop Selective XML Indexes
Events
Mar 31, 11 p.m. - Apr 2, 11 p.m.
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today