/ Published in: SQL
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
DECLARE @StringToSearch VARCHAR(100) SET @StringToSearch = 'searchstring' SET @StringToSearch = '%' +@StringToSearch + '%' 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
URL: http://www.knowdotnet.com/articles/storedprocfinds.html