July 20, 2010 at 6:54 am
I have a particular table that has several indexes.
How can I write (a) T-sql statement(s) that will show me
1. The different indexes produced against the table.
2. The columns associated with each index.
Your help is appreciated.
July 20, 2010 at 6:58 am
sp_help tablename
---------------------------------------------------------------------
July 20, 2010 at 7:38 am
July 20, 2010 at 1:14 pm
July 20, 2010 at 2:33 pm
Write a query that retrieves from sys.indexes, sys.index_columns and sys.columns. Will show key and include columns.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply