Click here to Skip to main content
15,885,032 members
Articles / Database Development / SQL Server
Alternative
Tip/Trick

Find particular word or text from the entire stored procedure

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
26 Jan 2012CPOL 7.2K   1
SELECT OBJECT_NAME(object_id), definition FROM sys.sql_modules WHERE definition LIKE '%GetEmployee%'
SQL
SELECT OBJECT_NAME(object_id), definition FROM sys.sql_modules WHERE definition LIKE '%GetEmployee%'

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralReason for my vote of 5 Correct. sql_modules has the complet... Pin
dmjm-h17-May-11 5:15
dmjm-h17-May-11 5:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.