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
 General SQL Server Forums
 New to SQL Server Programming
 Listing of sql views

Author  Topic 

divan
Posting Yak Master

153 Posts

Posted - 2013-06-28 : 07:37:16
is there a command to list all the views in a sql db???

mmkrishna1919
Yak Posting Veteran

95 Posts

Posted - 2013-06-28 : 08:04:51
Try this..

select * from sys.objects where type='V'

M.MURALI kRISHNA
Go to Top of Page

divan
Posting Yak Master

153 Posts

Posted - 2013-06-28 : 08:08:04
That worked... Thanks
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-06-28 : 11:36:20
also

SELECT * FROM INFORMATION_SCHEMA.VIEWS



------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -