drop index (core)

Removes an index from a table in the current database.

Syntax

Transact-SQL Syntax

drop index table_name.index_name
[, table_name.index_name]...

ODBC Syntax

DROP INDEX index_name

Parameters

Examples

Usage

  • You can specify multiple index names in Transact-SQL, but ODBC supports only a single name per statement. If multiple names are present, multiple ODBC DROP statements are generated.

  • Adaptive Server/CIS passes the drop index command to the DirectConnect server as a language event.

  • To get information about existing indexes on a table:
    sp_helpindex table_name