I need a query to see if a table already has any indexes on it.
I need a query to see if a table already has any indexes on it.
Simply you can find index name and column names of a particular table using below command
SP_HELPINDEX 'tablename'
It works for me