Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MarshalOfficial/cd14f4ccaf226af129bb88ef4732b164 to your computer and use it in GitHub Desktop.
Save MarshalOfficial/cd14f4ccaf226af129bb88ef4732b164 to your computer and use it in GitHub Desktop.
find all sps that contain specific word in sql server
SELECT OBJECT_NAME(object_id) AS Procedure_Name FROM sys.sql_modules(nolock) WHERE definition LIKE '%31291%' AND OBJECTPROPERTY(object_id, 'IsProcedure') = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment