| Author |
Message |
atomicbomb
Joined: 14 Feb 2008 Posts: 2
|
Posted: Thu Feb 14, 2008 5:18 am Post subject: Search in Stored Procs |
|
|
Description: Searches the contents of Stored Procs for a given phrase
Shortcut: ssp (Search Stored Procs)
Code:
SELECT ROUTINE_NAME, ROUTINE_DEFINITION
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_DEFINITION LIKE '{%}foobar{%}' |
|
| Back to top |
|
 |
rjpaulsen
Joined: 21 Jul 2006 Posts: 35
|
Posted: Wed Mar 12, 2008 7:49 pm Post subject: Variation |
|
|
This is the one I use:
| Code: |
SELECT ROUTINE_NAME, ROUTINE_DEFINITION
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_DEFINITION LIKE '%$CURSOR$%'
AND ROUTINE_TYPE='PROCEDURE'
ORDER BY [ROUTINE_NAME] |
|
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group