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