Update Access database from a DataSet takes way too long
Posted on 2006-10-24
I am using C# to make some data sets for an Access database. When I save a data set (using an OdbDbDataAdapter) that has 3500 rows added to an originally empty table it takes 45-50 seconds to do the insert. I was using the command builder to make the insert command so I thought I would make my own stored proc and try that - it didn't help. I also need to save a set of 58,000 records and it takes 15 minutes or so using the command builders insert command and, having tried making my own for the other, I'm guessing it's not going to help there either. That seems way out of line - what is going on? What can I do to speed this up. It's almost useless. I've also done an update of one field in a data set and saving it also takes the same (too much) time.