22 May, 2009
0 Comments
0 categories
Select all indices from a database in Microsoft SQL Server 2005
select
[name]
from
sysindexes (nolock)
where ([name] not like ‘PK%’)
and ([name] not like ‘_WA%’)
and ([name] not like ‘sys%’)
and ([name] not like ‘ncsys%’)
and ([name] not like ‘tsys%’)
and ([name] not like ‘ucsys%’)
and ([name] not like ‘nc1sys%’)
and ([name] not like ‘nc2sys%’)
and ([name] not like ‘tdtproperties’)
order by [name]
Tags: SQL Server