Created
November 10, 2017 18:14
-
-
Save jeffjohnson9046/ac0255abb6747ca3c19c84a0b71dd591 to your computer and use it in GitHub Desktop.
MS SQL Server: find text in a stored procedure
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
-- Second answer from here: https://stackoverflow.com/questions/14704105/search-text-in-stored-procedure-in-sql-server | |
SELECT | |
name, | |
SCHEMA_NAME(schema_id) AS [schema] | |
FROM | |
sys.procedures | |
WHERE | |
OBJECT_DEFINITION(object_id) LIKE '%whatever text you are looking for%'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment