Query to check index on a table

Viewed 392015

I need a query to see if a table already has any indexes on it.

11 Answers

Simply you can find index name and column names of a particular table using below command

SP_HELPINDEX 'tablename'

It works for me

for smss - mssql, one can refer the create scriptenter image description here

Related