The most efficient way to insert many records into a table is to use BULK INSERT (I believe that this is what BCP Utility uses, and therefore it should be just as fast).
BULK INSERT optimized for inserting large amounts of data and is intended to be used when the performance of a simple INSERT simply fails.
If BULK INSERT not what you need, then you can take a look at the following article for a simpler technique:
The uftReadFileAsTable stored procedure associated with the article, which seems to have to be universal enough to achieve what you need.
If this is not the case, you can at least use a stored procedure as an example of how to read files in SQL (it uses OLE / Scripting. FileSystemObject )
Justin
source share