You are looking at sysindexes and sysindexkeys . You can also use sp_help to explain the table, including all indexes.
select k.*, x.name
from sysindexes x
join sysindexkeys k on k.id = x.id
join syscolumns c on c.id = x.id and k.colid=c.colid
where x.id = object_id('yourtable')
and c.name='yourcolumn'
and x.indid > 1
You can specify the key position in the index from the k.keyno column, if not 1, then the column is probably SARGable only if it is combined with other columns that are ahead of it in index order.
source
share