x

Find the list of disabled indices in a database

Hi,

Is there some information schema view/ sys object which allows to get list of all the indexes?

Thanks! Bhaskar

more ▼

asked May 13, 2010 at 12:44 PM in Default

avatar image

Bhaskar
333 17 19 24

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

In SQL Server 2005 the name of the view is sys.indexes.

select 
    object_name([object_id]) table_name, [name] index_name, is_disabled 
    from sys.indexes
    where [name] is not null;

Hope this helps.

more ▼

answered May 13, 2010 at 12:49 PM

avatar image

Oleg
20.6k 3 7 29

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x1096

asked: May 13, 2010 at 12:44 PM

Seen: 3616 times

Last Updated: May 13, 2010 at 12:44 PM

Copyright 2018 Redgate Software. Privacy Policy