Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Script to find a string in SP/Function/View SQL

By Jeroen van Kessel,

I mark my SQL with a 'Todo' symbol whenever I decide something needs work, but I don't have the time to do it right away. So I wrote this usp so that I can get a quick list of stored procedures, function and views that need some extra work.

It also comes in handy whenever you have to find a certain character sequence. I had to find everything with '365' in it cause one of my clients liked to hardcode certain values. :-)

Total article views: 241 | Views in the last 30 days: 1
 
Tags
miscellaneous    
t-sql    
 
Contribute