Search Stored Procedures

  • Hi there,

    I need to make a change to a WHERE clause in a stored procedure.  Thing is, the same WHERE clause could possibly be in a hundred or more stored procedures.

    Is there a system table that will tell me which stored procedures contain the WHERE clause I am looking for?

    Thanks in advance

  • Take a look at syscomments in the master database.

    Steve

  • actually it's the syscomments table in the database in which the sps are kept.

  • Thanks to both of you!  I was able to find what I was looking for.

  • There was a great script here just recently, sp_grep, which allowed you to search your stored procedures.

    So long, and thanks for all the fish,

    Russell Shilling, MCDBA, MCSA 2K3, MCSE 2K3

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply