Database Change Management
Database Change Management
Home | Profile | Register | Active Topics | Active Polls | Members | Private Messages | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Support
 DB Ghost Support Forum
 Compare DB's
 New Topic  New Poll New Poll
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

msegura


1 Posts

Posted - 06/15/2009 :  13:13:03  Show Profile Send msegura a Private Message  Reply with Quote
Hi,
I'm comparing two databases' stored procs and I'm getting some strange results. My comparison is scripting some stored procs which are neither in Database A or B. As a matter of fact, they appear to be very old stored procs that were dropped from the source database a long time ago. Yet the comparison seems to think that the source still has it and creates the stored procs to be created in the target database. Why is this happening?

leachm



124 Posts

Posted - 06/16/2009 :  04:04:30  Show Profile  Click to see leachm's MSN Messenger address Send leachm a Private Message  Reply with Quote
The only thing I can think of here is that you're running into the old "sp_rename" bug in SQL Server. When someone uses sp_rename to rename a stored procedure it only changes the name in the sysobjects table - it does not update the textual definition in the syscomments table.

When the object is scripted so that it can be run on the target it takes the definition from syscomments...which may have a different name.

I would look through the list of stored procedures that were dropped from the target database and the list of ones that were added to see if you can spot a correlation.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  New Poll New Poll
 Reply to Topic
 Printer Friendly
Jump To:
Database Change Management © Copyright 2005 Innovartis Ltd. Go To Top Of Page
Snitz Forums 2000
RSS Feed 1 RSS Feed 2
Powered by ForumCo 2000-2008
TOS - AUP - URA