sp_helpindex for Votes and Users

0

Please login or register to vote for this query.

(click on this box to dismiss)

Genealogy and Family History Meta

Q&A about the site for expert genealogists and people interested in genealogy or family history

-- sp_helpindex 'Users'
select object_name(i.object_id)
     , i.name
     , i.type_desc
     , co.name
     , i.*
     , ico.* 
from sys.indexes i
inner join sys.index_Columns ico 
   on ico.object_id = i.object_id
inner join sys.columns co 
   on co.object_id = i.object_id 
   and co.column_id = ico.column_id
where object_name(i.object_id) in ( 'Votes', 'Users', 'PostHistory')
order by i.object_id, i.index_id, ico.key_ordinal

select *
from sys.columns

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results