Created
June 27, 2014 13:48
-
-
Save dandye/e072be98d508d3856f98 to your computer and use it in GitHub Desktop.
Search all SQL Server stored procedures and views within current database for specific text.
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
--Search all stored procedures and views within current database for specific text. | |
SELECT [name] | |
FROM [dbo].[sysobjects] obj | |
INNER JOIN [dbo].[syscomments] cmt | |
ON obj.[id] = cmt.[id] | |
WHERE cmt.[text] like '%searchText%' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment