Reports information about the indexes on a table.
sp_helpindex tabname
where
Executing sp_helpindex lists up to eight indexes on a table.
This example reports on the types of indexes on the sysobjects table.
sp_helpindex sysobjects
index_name |
index_description |
index_keys |
--------------------- |
-------------------- |
--------------- |
sysobjects |
clustered, unique |
id |
ncsysobjects |
nonclustered, unique |
name, uid |
Execute permission defaults to the public group.
master.dbo.spt_values, sysindexes, syssegments
CREATE INDEX | sp_statistics |
DROP INDEX | UPDATE STATISTICS |
sp_help |