Skip to content

Instantly share code, notes, and snippets.

@nathany
Created May 31, 2010 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathany/420182 to your computer and use it in GitHub Desktop.
Save nathany/420182 to your computer and use it in GitHub Desktop.
SQL Server search through stored procedure and trigger code
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