in reply to Performance issues with inserting csv into SQL Server

SRick:

I'd suggest using perl to put the log file into a standardized format that BCP can digest easily. Bulk-insert tools are optimized for this sort of thing.

BCP is pretty easy to use, too.

I find it best to BCP the data into a temporary table, then do a cleanup pass or two (deleting unwanted messages, etc.), though if you process the file before giving it to BCP, you can do the cleanup in perl rather than in the temporary table. Then you can integrate the data into your working tables.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: Performance issues with inserting csv into SQL Server