SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Search word in sps

By Deepa Gheewala,

Total article views: 160 | Views in the last 30 days: 8

Suppose i have used a server name in many Sps. Now the Server gets changed and so i need to update the servername in all sps.

It becomes a tedious task to go through all the sps. Instead i can run this script and get the list of Sps where that Servername is written and then just by a update statement you can update.

All the SP contents are stored in syscomments table in text field.

 

This script helps to get all the Sps or functions having the word Return in their contents.

 

By Deepa Gheewala,

Total article views: 160 | Views in the last 30 days: 8
Your response
 
 
Related Articles
FORUM

update

question about update.

FORUM

Stats Updates

Stats Updates

FORUM

Update Problem

Update Problem

FORUM

Update statement

update statement

Tags
search    
stored procedures    
 
Contribute

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.

Login (existing users)

Login

Email:   Password:   Remember me: Forgotten your password?

Register (new users)

Register

Email:   Password:
Confirm:

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.

Steve Jones
Editor, SQLServerCentral.com