yanci1179
asked on
Find Indexes
Is there a way to get a list of all indexes in all tables. Also identify if they are non-clustered or clustered. Using SQL 2005?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
quotename(schema_name(o.sc
i.name as [index],
i.type_desc as [index type]
from sys.indexes i
inner join sys.objects o
on i.[object_id] = o.[object_id]
where i.name is not null
order by [object], i.index_id