Does anyone have a clear routine for bulk copying files from a flat text file (no delims) into SQL server (7) inside a VB.net (2008) program?
We need to read directly from the text file into SQL, without BCP (i.e. within the program), but the data files are entirely too large to create a memory table or to read the whole file first. The files are on average 800,000 records (record lengths up to 2048) on up to over 6 million.
I have a routine that connects to SQL, builds a table from the record structure information, but I have no way to actually move it into SQL without looping through readline(s), which will take forever.
Any ideas?
TM
Start Free Trial