all groups > sql server programming > january 2005 >
You're in the

sql server programming

group:

Search stored procedures for a certain text string


Re: Search stored procedures for a certain text string Adam Machanic
1/14/2005 2:30:55 PM
sql server programming:
SELECT *
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_DEFINITION LIKE '%datediff%'

--
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
--


[quoted text, click to view]

Search stored procedures for a certain text string Mark
1/14/2005 7:24:49 PM
We have a database with approx 120 stored procedures in it and no access
to the original scripts.

Is there any way to search a database's stored procedures for a certain
code text ie: a search for "select datediff" code in all the stored
procedures.

Re: Search stored procedures for a certain text string Mark
1/14/2005 8:45:53 PM
[quoted text, click to view]

Thanks,
I will give it a try today...
AddThis Social Bookmark Button