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

Find all Stored Procedures having a given text in it

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
25 Oct 2011CPOL 8K   1  
SELECT DISTINCT so.name FROM dbo.sysobjects so inner join .dbo.syscomments sc on so.id=sc.id WHERE so.xtype='P' AND sc.text like '%SearchString%'Much faster!

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
Software Developer (Senior) Multimos
Spain Spain
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions