DECLARE @StringToSearch VARCHAR(500)
SET @StringToSearch =
'%text in stored procedure%'
SELECT Distinct SO.Name
FROM sysobjects SO (NOLOCK)
INNER JOIN syscomments SC (NOLOCK) on SO.Id = SC.ID
AND SO.Type = 'P'
AND SC.Text LIKE
@stringtosearch
ORDER BY SO.Name
No comments:
Post a Comment