C# - SQL Insert and Update speed -
i have csv file of 80,000 rows , trying process in c# application , make necessary changes sql database. read csv in application doesn't take long process there.
for each of records csv either insert new record or update existing 1 in database based on condition(from sql select statement). using c# inline sql commands selects, updates, , inserts. process taking 40 minutes complete.
i wondering if there best practices large sql database updates , insertions able make process quicker.
thanks in advance!
this best i've used.
http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlbulkcopy.aspx
very fast.
Comments
Post a Comment