Bulkinsert from CSV into db (C#) -> max number of rows in a web application?
Posted
by Swoosh
on Stack Overflow
See other posts from Stack Overflow
or by Swoosh
Published on 2010-04-28T11:11:46Z
Indexed on
2010/04/28
12:03 UTC
Read the original article
Hit count: 375
Web application - C#, .Net, SQL 2k5. I recently used bulkinsert on an other application and I thought I would like to give it a try.
I am going to receive a CSV file with 1000 rows, which will most likely add 500 000 (that is five hundred thousand) records in the database. I don't have any idea yet about this huge amount if it's going to work out well. I am afraid that it will time out.
I didn't do any testing yet, but I am pretty sure it would time out eventually.
Is there a way to make it not time out (I don't know ... split the bulkinsert into 1000 pieces :D) or I should try to do something like BCP, with a SQL job ...
© Stack Overflow or respective owner