Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Query to list the Indexed Views in a DB

Author  Topic 

ravilobo
Master Smack Fu Yak Hacker

1184 Posts

Posted - 2010-10-13 : 16:11:41
What is the SQL query to list all the Indexed Views in a DB?

------------------------
I think, therefore I am - Rene Descartes

jezemine
Master Smack Fu Yak Hacker

2886 Posts

Posted - 2010-10-14 : 01:29:24
select so.name,si.name as IndexName
from sys.indexes si
join sys.objects so on so.object_id=si.object_id
where so.type='V'


elsasoft.org
Go to Top of Page

ravilobo
Master Smack Fu Yak Hacker

1184 Posts

Posted - 2010-10-14 : 09:21:27
Thank you, jezemine.

------------------------
I think, therefore I am - Rene Descartes
Go to Top of Page
   

- Advertisement -