Search for text in SQL database procs/functions

declare @searchString varchar(100)
Set @searchString = '%word_to_find%'
SELECT Distinct SO.Name
FROM sysobjects SO (NOLOCK)
INNER JOIN syscomments SC (NOLOCK)
on SO.Id = SC.ID
AND SC.Text LIKE @searchString
ORDER BY SO.Name

Technorati Tags: ,,
07.23.2009 07:04 by Danny Gershman | Comments (1) | Permalink

Comments

Add comment


(Will show your Gravatar icon)  


Enter Numbers In Image Above: biuquote
  • Comment
  • Preview
Loading