Does anyone know the fastest way to get data from and Excel table (VBA Array) to a table on SQL 2008 without using an external utility (i.e. bcp)? Keep in mind my datas
By far the fastest way to do this is via T-SQL's BULK INSERT.
There are a few caveats.
BULK INSERT
command and specify a filename, remember that the filename will be resolved on the machine where SQL Server is running).FIELDTERMINATOR
and ROWTERMINATOR
values to match your CSV.It took some trial and error for me to get this set up initially, but the performance increase was phenomenal compared to every other technique I had tried.