Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old October 3rd, 2008, 08:35 AM
Vogon Jeltz
Guest
 
Posts: n/a
Default [Newbie Question] SSMS indexes

Under SSMS where can one find the list of indices?
I can see Stored procedures under Programmability. Is there any place
where I can see the list of indexes.


Apologies, if this is a stupid question.

--
VJ

  #2  
Old October 3rd, 2008, 12:05 PM
Erland Sommarskog
Guest
 
Posts: n/a
Default Re: [Newbie Question] SSMS indexes

Vogon Jeltz (srivatsav.prasanna@gmail.com) writes:
Quote:
Under SSMS where can one find the list of indices?
I can see Stored procedures under Programmability. Is there any place
where I can see the list of indexes.
>
>
Apologies, if this is a stupid question.
In Object Explorer you can see the indexes only per table; there is no node
that lists indexes alone.

However, you could run this query to see all indexes in the database:

SELECT object_name(object_id), name
FROM sys.indexes
WHERE index_id 0




--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
  #3  
Old October 3rd, 2008, 12:05 PM
Dan Guzman
Guest
 
Posts: n/a
Default Re: [Newbie Question] SSMS indexes

Under SSMS where can one find the list of indices?

Indexes are dependent on a specific table so you need to first expand the
desired table node, where you will see an Indexes node. Note that SSMS will
include indexes that support constraints under the Indexes node too.

--
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles