Skip to content

Instantly share code, notes, and snippets.

@Sebfh
Last active December 11, 2015 22:49
Show Gist options
  • Save Sebfh/4672352 to your computer and use it in GitHub Desktop.
Save Sebfh/4672352 to your computer and use it in GitHub Desktop.
TSQL: Find stored procedures that contain a string of text
SELECT B.Name, *
FROM syscomments A INNER JOIN sysobjects B
ON A.id = B.id
WHERE A.text like '%yourtext%'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment