Often you'll want to know which stored procedure is performing an action or contains specific text. Query will match on comments.
SELECT name
FROM sys.procedures
WHERE Object_definition(object_id) LIKE '%strHell%'
SELECT name
FROM sys.procedures
WHERE Object_definition(object_id) LIKE '%blitz%'
name |
---|
sp_BlitzFirst |
sp_BlitzCache |
sp_BlitzWho |
sp_Blitz |
sp_BlitzBackups |
sp_BlitzLock |
sp_BlitzIndex |