SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Copy objects from one database to another
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Yak Posting Veteran

94 Posts

Posted - 01/23/2014 :  09:38:21  Show Profile  Reply with Quote
Hi All,

I have two database xyz and abc in the same instance of SQL Server 2000 on the same server.

The only difference is that the target database (xyz) has a few objects (tables, indexes, sps, view, logins) more than the other that is database abc.

When I use DTS and schedule to copy all objects from abc to xyz the operation deletes the additional tables and objects from xyz.

What could be the cause. Can I acheive it programmatically. If so how?

Starting Member

47 Posts

Posted - 01/28/2014 :  08:58:32  Show Profile  Reply with Quote
You can compare the system tables to find what objects don't exist then copy them to another database only to copy back when you're done.
Alternately you can create a staging database.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000