Welcome to RP's venture...Here you can find some of the relative topics like ASP.Net, C#.Net,VB.Net, SQL Server, AJAX, Javascripts, Sharepoint, WPF, WCF, Silverlight, MVC, General knowledge, Jokes, Fun, Technical, Non-Technical etc.
0

List of Indexes on a Table

Posted by Rajendra Prasad Panchati on Friday, June 11, 2010
To list all the indexes on a table use:

exec sp_helpindex table_name
where table_name is the name of the table for which the list of indexes are required.
This lists the index name, the type (e.g. clustered, non clustered, unique etc) and which columns the index is created on. Further details can be found by consulting the SQL server documentation.


Reference : http://www.cryer.co.uk/brian/sqlserver/sqlsvrhowto.htm

|

0 Comments

About Me