Skip to content

Instantly share code, notes, and snippets.

@nathany
Created May 31, 2010 19:31
Show Gist options
  • Select an option

  • Save nathany/420182 to your computer and use it in GitHub Desktop.

Select an option

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