Click here to Skip to main content
16,016,925 members
Articles / Database Development / SQL Server
Tip/Trick

Find particular word or text from the entire stored procedure

Rate me:
Please Sign up or sign in to vote.
4.22/5 (9 votes)
22 May 2011CPOL 42.7K   7   7
SQL
SELECT distinct(OBJECT_NAME(id)) FROM syscomments WHERE text like '%GetEmployee%'


It will find text "GetEmployee" from the entire stored procedure in the database.

Thanks,
Imdadhusen

License

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


Written By
Technical Lead Infostretch Ahmedabad-Gujarat
India India
Aspiring for a challenging carrier wherein I can learn, grow, expand and share my existing knowledge in meaningful and coherent way.

sunaSaRa Imdadhusen


AWARDS:

  1. 2nd Best Mobile Article of January 2015
  2. 3rd Best Web Dev Article of May 2014
  3. 2nd Best Asp.Net article of MAY 2011
  4. 1st Best Asp.Net article of SEP 2010


Read More Articles...

Comments and Discussions

 
GeneralMy vote of 2 Pin
Member 793464812-Dec-12 3:00
Member 793464812-Dec-12 3:00 
GeneralRe: My vote of 2 Pin
Sunasara Imdadhusen22-Apr-14 4:04
professionalSunasara Imdadhusen22-Apr-14 4:04 
GeneralMy vote of 5 Pin
Savalia Manoj M7-Nov-12 1:09
Savalia Manoj M7-Nov-12 1:09 
GeneralRe: My vote of 5 Pin
Sunasara Imdadhusen22-Apr-14 4:04
professionalSunasara Imdadhusen22-Apr-14 4:04 
GeneralMy 5. I used this in the past. Pin
Costica U25-Apr-11 22:30
Costica U25-Apr-11 22:30 
GeneralRe: This tip is good one however the alternate is much better. A... Pin
Gandalf_TheWhite29-Apr-11 1:11
professionalGandalf_TheWhite29-Apr-11 1:11 
GeneralRe: My 5. I used this in the past. Pin
Sunasara Imdadhusen22-Apr-14 4:05
professionalSunasara Imdadhusen22-Apr-14 4:05 

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.