Creating Understanding and Educating Programmers, Developers and Technical Communities, one post at a time.

Thursday, May 2, 2013

Find Text in Stored Procedures

Method to retrieve every text inside the stored procedures of a database
SELECT B.Name, *
FROM syscomments A INNER JOIN sysobjects B
ON A.id = B.id
WHERE A.text like '%tblNames%'
Reference: http://geekswithblogs.net/whiletrue/archive/2009/02/02/find-text-in-sql-stored-procedures.aspx

No comments:

Post a Comment