Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Multiple Stored Procedure with Query Statement 1

Status
Not open for further replies.

CrystalJack

Programmer
Joined
Jun 20, 2002
Messages
3
Location
US
I'm moving several tables and stored procedures to anther server.

Server one is named Genesis and the database is Genesis.
Server two is named Genesis and the database will be named MonthHistory.

Problem:

The tables names don't use full path address.
(example:
ClaimStat -instead of- Genesis.Genesis.dbo.ClaimStat)

Is there a query statement that I can write to update the table in the stored procedures so I don't have to do it manually?
 
in general, updating system tables (syscomments in this case), is not recommended!
I think the best thing to do here is script out a DROP/CREATE text file of all procs, and 'find/replace' object names in the file.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top