Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Data loading performance Expand / Collapse
Posted Thursday, September 26, 2013 7:41 PM


Group: General Forum Members
Last Login: Wednesday, July 1, 2015 10:41 PM
Points: 12, Visits: 115
I have to transfer 300gb's of data from a table in one database to a table in another database on the same server. I've done some research into data loading and testing and found the quickest and most efficient way to do this was set the recovery to BULK_LOGGED, turn on trace flag 610 and lock the target table. I have also ordered the data set on the primary key of the target table as well.
The current transfer rate that I'm getting is around 1gb per hour.

My question is would I get a quicker transfer rate if I was to unload the data to a file using BCP or bulk insert and then load it back into the target database and table?

Post #1499139
Posted Friday, September 27, 2013 12:14 AM



Group: General Forum Members
Last Login: Today @ 1:03 AM
Points: 15,506, Visits: 13,169
It might be a track worth pursuing, but to me it seems like you're adding an extra step.
How do you load the data now? If you sort the data according to the primary key, you need to mention it somewhere so that SQL Server doesn't inspect the data for sorting.

How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1499196
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse