October 11, 2006 at 1:52 am
Hello freinds
I am really in vague situation ..i want to transfer 138954128 records from one server to another server?????
we have sql server 2000 and ram on old production server is 8 GB and new server is 2GB????
how i do this task and also i should consider log file grow and temp file grow????
pls guide me
Regards,
Papillon
October 11, 2006 at 3:07 am
Hi,
I have recently transfered around 270 millions of rows from one Server to another using the following:
Linked the destination server to the source server and then transfered the data with a select into a new table on the destination server and then applied the indexes on it.
I've set the database to simple recovery mode during that operation and I could see only a little grow of the log file.
Hope that helps.
Best regards,
Holger
October 11, 2006 at 10:32 pm
Hi
How to appy indexes i didnt get ur point..pls clear me
Regards,
Papillon
October 12, 2006 at 10:00 am
You might consider using BCP to write all the data from the source server to a file, then use it again to load the file into the destination table. If the destination database is in Simple or Bulk-logged recovery mode, this will avoid logging all the inserts and will be much faster than any form of INSERT/SELECT, DTS, or SSIS.
For best performance, run the BCP OUT command on the source server and the BCP IN command on the destination server to minimize network traffic.
October 12, 2006 at 5:32 pm
Using BCP is a good option if you are transferring all columns in the destination table otherwise the import will probably fail, it is a failing of BCP program.
October 13, 2006 at 6:44 am
If the source and destination tables have different structures, you can create a view on the source system that matches the destination table and export from the view using BCP, or export the table to a text file and use a format file on the import to map the columns. Either way, you avoid the log file growth you would get with a single huge INSERT/SELECT.
You can put an INSERT/SELECT in a loop to transfer 1000 rows at a time to limit the effect on the log file, but some form of bulk insert will still give better performance.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply