How do you list all the indexed views in SQL Server? -


how can list of views in sql server database have indexes (i.e. indexed views)?

i've found it's pretty easy run "alter view" i'm developing , overlook i'm not editing view dropping existing index. thought nice have little utility query around list me off views indexes.

select o.name view_name, i.name index_name     sysobjects o          inner join sysindexes              on o.id = i.id      o.xtype = 'v' -- view 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -