Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Copy Database

$
0
0

I have a request to copy a portion of a database from server A to server B as an archived process.

Server A current database: 75 tables

Server B database: only need 25 tables out of the 75 tables. Most of the 25 tables has between 10-20 million rows.

My question is

1) what are my options? I figured I can:

a) Red Gate SQL Data Compare. We are licensed for this piece of software, however, I get the feeling this will take forever on those million rows

b) SSIS - This is probably going to take a while as well.

c) I guess I can do the following http://blog.sqlauthority.com/2009/07/29/sql-server-2008-copy-database-with-data-generate-t-sql-for-inserting-data-from-one-table-to-another-table/ ; however, I'm guessing it's going to take forever as well with all the inserts.

d) Backup and restore - this is probably the quickest. However, I will need to drop the other 50 tables.

What are you expert opinions / suggestions?

Thanks.



Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>