C
Chris Botha
I have a DataTable populated with 2000 new records, then call the Update of
the SqlDataAdapter to insert the records from the DataTable into SQL Server,
and this operation takes about 18 seconds, thus around 110 inserts per
second.
This was a VB6 app, now re-written in dotnet. The VB6 app just generated
vanilla "Insert Into" statements and did the inserts in about 10 seconds
(around 200 per second), same computer, same SQL Server.
I did some research on this and the popular remedy is to generate your own
SqlCommand for Insert/Update (not to let the SqlCommandBuilder do it, not
efficient, they say), so I did it. I am not sure if the authors of these
articles want to save milli-seconds, it still takes about 18 seconds.
Anyone knows how to speed this up?
the SqlDataAdapter to insert the records from the DataTable into SQL Server,
and this operation takes about 18 seconds, thus around 110 inserts per
second.
This was a VB6 app, now re-written in dotnet. The VB6 app just generated
vanilla "Insert Into" statements and did the inserts in about 10 seconds
(around 200 per second), same computer, same SQL Server.
I did some research on this and the popular remedy is to generate your own
SqlCommand for Insert/Update (not to let the SqlCommandBuilder do it, not
efficient, they say), so I did it. I am not sure if the authors of these
articles want to save milli-seconds, it still takes about 18 seconds.
Anyone knows how to speed this up?