This stored procedure allows you to search all store procedures within a database for any reference to a specified string of text.

Example: EXECUTE findText ‘lineno’

Procedure Line Reference

sea 39 DECLARE @lineNo INTEGER
sea 74 SET @lineNo = 0
sea 82 SET @lineNo = @lineNo + 1
sea 85 PRINT @proc + CHAR(9) + STR(@lineNo) + CHAR(9) + LTRIM(@line)

Author: Paul Hobbs

Download Script:

We hope that the information on these script pages is
valuable to you. Your use of the information contained in these pages,
however, is at your sole risk. All information on these pages is provided
“as -is”, without any warranty, whether express or implied, of its accuracy,
completeness, or fitness for a particular purpose…

Disclaimer Continued

Back to Database Journal Home

Latest Articles