Sunday, 6 May 2012

Searching text in Stored procedures

SELECT OBJECT_NAME(id)
FROM syscomments
WHERE [text] LIKE '%ms_redo%'
AND OBJECTPROPERTY(id, 'IsProcedure') = 1
GROUP BY OBJECT_NAME(id)

1 comment:

Anonymous said...

very good