[Newbie Question] SSMS indexes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vogon Jeltz

    #1

    [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

  • Erland Sommarskog

    #2
    Re: [Newbie Question] SSMS indexes

    Vogon Jeltz (srivatsav.pras anna@gmail.com) writes:
    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(obj ect_id), name
    FROM sys.indexes
    WHERE index_id 0




    --
    Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.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

    Comment

    • Dan Guzman

      #3
      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


      Comment

      Working...