Link to home
Start Free TrialLog in
Avatar of thresholds
thresholdsFlag for United States of America

asked on

Update Access database from a DataSet takes way too long

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.
Thanks

ASKER CERTIFIED SOLUTION
Avatar of anyoneis
anyoneis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Access itself is slower, you could try finding a different database, something that is faster, MySQL, SqlServer Express, something like that.

If you are still really hurting, you could possibly go down the path of trying to insert the data in VB6 with ADO and wrapping that with your c# class, but I would expect this to be even slower.   The size of your 58,000 rows is probably the real issue, it's just more than what access is able to handle easily.