In a previous post I explained where an SSIS FastParse option can be found
when importing data from Flat files.
I finally had some time to explore all four of SQL Server 2005 Bulk import utilities.
Those are:
1. BCP
2. Bulk Insert
3. OpenRowset with BULK option
4. SQL Server Integration Services - SSIS
I ran each bulk import option 12 times, disregarded best and worst time and averaged the remaining ten times.
Results are:
| 1. |
SSIS - FastParse ON |
= |
7322 ms |
| 2. |
SSIS - FastParse OFF |
= |
8387 ms |
| 3. |
Bulk Insert |
= |
10534 ms |
| 4. |
OpenRowset |
= |
10687 ms |
| 5. |
BCP |
= |
14922 ms |
So speed gain is quite large when using FastParse.
I was also surprised that SSIS - FastParse OFF method was faster by 20% to Bulk Insert and OpenRowset
and around 40% faster than BCP.
Scripts, code and details here.
Edit 2006-07-22: Some updated tests here.