web 3.0

Find text in stored procedures

Here is a simple SQL query that will look in your stored procedures and return any that finds “yourtext”.

SELECT ROUTINE_NAME, ROUTINE_DEFINITION
    FROM INFORMATION_SCHEMA.ROUTINES
    WHERE ROUTINE_DEFINITION LIKE '%yourtext%'
    AND ROUTINE_TYPE='PROCEDURE'

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Categories: .Net

Bookmark and Share
Comments are closed