Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Browse by Tags · View All
SQL Server 13
#SQLServer 7
DBA 7
BRH 5
indexes 4
Power Shell 2
object naming 1
joke 1
whitespaces 1
training 1

Archive · View All
July 2011 6
August 2011 4
March 2012 2
February 2012 1
December 2011 1
October 2011 1
September 2011 1

Szymon Wojcik's Blog

How to check definition of views in a database

Oct 10 2011 10:49AM by Szymon Wojcik   

During preparation of replication from remote site to central office I stumbled upon a need to check definitions of all views in a database. The script is simple, yet useful:

select sv.name, sc.text from sys.views sv     
inner join dbo.syscomments sc on sv.object_id = sc.id     
where sv.is_ms_shipped = 0

You get all the non-system views - if you're looking for a specific text in a script, just drop another conditions in WHERE clause and you're done. I - for instance - was able to locate all views referencing linked servers.

Tags: 


Szymon Wojcik
67 · 3% · 839
0
Liked
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

Your Comment


Sign Up or Login to post a comment.

    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]