Created
May 31, 2010 19:31
-
-
Save nathany/420182 to your computer and use it in GitHub Desktop.
SQL Server search through stored procedure and trigger code
This file contains 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
USE MyDatabase | |
GO | |
SELECT mprod.object_id, oprod.name | |
FROM sys.sql_modules mprod | |
LEFT JOIN sys.objects oprod ON mprod.object_id = oprod.object_id | |
WHERE mprod.definition LIKE '%SearchString%' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment