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)

Procedure Search by Keyword(s)

By julianhaynes,

Searches SysComments for occurances of entered keywords and returns a list of procedures that contain the keywords. eg1) To find all procedures with 'nMyColumn' in EXEC utl_ProcSearch 'nMyColumn' eg2) To find all procedures with 'nMyColumn' in and 'nMyColumn2' in EXEC utl_ProcSearch 'nMyColumn', 'nMyColumn2' eg3) To find all procedures with temporary tables in... EXEC utl_ProcSearch '#' NB: Triggers also returned Caviate: SysComments splits procedures into rows of 4000 chrs each so there is a very small chance that it could miss a procedure if the keyword spans 2 rows. As the chances of this are minimal the benfits out weigh this

Total article views: 180 | Views in the last 30 days: 1
Related Articles

lowercase keywords and usability

Usability when it comes to the case of keywords.


Database Mail bouncing on a keyword

Database Mail bouncing on a keyword


"Updated" keyword in trigger

"Updated" keyword in trigger


SQL Crossword #2 SELECT Keywords

Crossword Puzzle on SELECT Keywords


keyword DEFAULT

In 12 years of working with SQL it was only last year that I came across the keyword DEFAULT and...