SQL Clone
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)

SP to find text in code objects in all user db's.

By Bent,

This script creates a stored procedure which helps to find text in all of your code objects in all your databases. It searches the code of SP's, UDF's, views, triggers, and it searches in all databases.
Output is a result set with DbName, ObjectName and ObjectType.
Advantages are
- works reliable also with source codes longer than 4000 byte.
- apparently runs faster than scripts using sp_helptext.

Usage: xFind 'SearchForMe'

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