Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Index information for table

Author  Topic 

nikita
Starting Member

7 Posts

Posted - 2007-12-19 : 06:45:01
Hi,

I need to display all the indexes in my database in the following order :

TableName, IndexName, ColumnName, Type_Desc, Is_Included_Column, key_ordinal

How can i do this? If there is a query which gives more info than described above, i am ok with it

thanks

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-12-19 : 07:31:37
Start out with

select * from sys.indexes



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -