SQL Server Central is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
Search:  
 
 

Search For SPs which contain a specific String.

By Prasad Bhogadi, 2004/03/26

Total article views: 415 | Views in the last 30 days: 45

This Stored Procedure is for Searching all the user defined Stored Procedures in a database for the existence of a specified string . This is especially useful when you have changed some Column name and want to Find the Column Name in all the Stored Procedures where it is used, so it will return you all the SPs which contain that Column Name in them. Well I realized that I used an additional Cursor for looping through for the SP Name which can be accomplished in the cursor which is used for retrieving the SP Text itself so I modified the Stored procedure for little optimization.

By Prasad Bhogadi, 2004/03/26

Total article views: 415 | Views in the last 30 days: 45
Your response
 
 
Related tags

T-SQL Aids    
 
Like this? Try these...

Write Text File

By amcleod | Category: Miscellaneous
| 205 reads
Already registered?  

Free registration required

To read the rest of this article, and access thousands of other articles, we ask you to register on the site and subscribe to our newsletters.

Register

E-mail address:
Password:
Password (confirm):

  

Subscriptions

We ask you to register on the site and subscribe to our newsletters. Subscribing to our newsletters gets you:

  • ALL of our content (thousands of articles, scripts, and forum postings)
  • A daily newsletter (example)
  • A weekly news round up (example)
  • The opportunity to ask and answer questions in our forums
  • A daily Question of the Day to test and help you increase your knowledge of SQL Server.

We ask that you give the newsletter a try for a week. Over 200,000 SQL Server Professionals a day find it entertaining and useful. If not, you are welcome to unsubscribe at anytime.

Steve Jones
Editor, SQLServerCentral.com