Created
July 21, 2011 14:43
-
-
Save phpleo/1097332 to your computer and use it in GitHub Desktop.
TSQL Stored Proceures
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT 'sp_helptext ' + name | |
| FROM sysobjects o | |
| INNER JOIN syscomments c ON (o.id = c.id) | |
| WHERE | |
| TEXT LIKE '%reemplazar_el_nombre%' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- http://databases.aspfaq.com/database/how-do-i-find-a-stored-procedure-containing-text.html | |
| SELECT ROUTINE_NAME, ROUTINE_DEFINITION | |
| FROM INFORMATION_SCHEMA.ROUTINES | |
| WHERE ROUTINE_DEFINITION LIKE '%foobar%' | |
| AND ROUTINE_TYPE='PROCEDURE' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment