Click here to Skip to main content
15,891,657 members
Articles / Database Development / SQL Server

Find particular word or text from the entire stored procedure

Rate me:
Please Sign up or sign in to vote.
4.50/5 (6 votes)
26 Apr 2011CPOL 10.7K   2  
You can create a simple stored procedure like that:DECLARE @StringToSearch varchar(100)SET @StringToSearch = 'GetEmployee'SET @StringToSearch = '%' +@StringToSearch + '%'SELECT Distinct SO.NameFROM sysobjects SO (NOLOCK) INNER JOIN syscomments SC (NOLOCK) on SO.Id = SC.ID AND...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions