0
List of Indexes on a Table
Posted by Rajendra Prasad Panchati
on
Friday, June 11, 2010
To list all the indexes on a table use:
This lists the index name, the type (e.g. clustered, non clustered, unique etc) and which columns the index is created on. Further details can be found by consulting the SQL server documentation.
Reference : http://www.cryer.co.uk/brian/sqlserver/sqlsvrhowto.htm
exec sp_helpindex table_namewhere table_name is the name of the table for which the list of indexes are required.This lists the index name, the type (e.g. clustered, non clustered, unique etc) and which columns the index is created on. Further details can be found by consulting the SQL server documentation.
Reference : http://www.cryer.co.uk/brian/sqlserver/sqlsvrhowto.htm
More
Less