Bulk Insert takes 4x as long on first operation of the day
Posted
by patrick
on Stack Overflow
See other posts from Stack Overflow
or by patrick
Published on 2010-03-23T17:27:08Z
Indexed on
2010/03/23
17:33 UTC
Read the original article
Hit count: 375
sql-server-2005
|bulkinsert
I do Bulk Inserts into a table with about 14 million rows at fiver minute increments during a 7 hour period during the day. These inserts take somewhere between 9-14 secs. However, the first insert always takes about 40 secs. Anyone know what SQL Server 2005 would be doing differently on the first insert into a table for that day?
From what I've read I should probably use the SqlBulkCopy class instead of just using a bulk insert in a stored procedure. Is that that the general consensus?
© Stack Overflow or respective owner