VB.net performance issue with backend Access database


I have an Excel 2007 project in VB.net that talks to a backend Access database using the connection string below. There are now 2000 records in the main table used in the database and the processing takes almost a minute just to open one form. What sort of thing causes this? How can I speed this up?

 Dim ConnectionString As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & oFullPath & ";"
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

There are a lot of factors that can influence the performance of your database.  This article is well worth the read:


In addition to the tips there, I have heard others say that the length of the path (number of folders) to your Access back-end can also make a difference.  

ie: a database linked to this path:


Would not perform as well as one linked to this path:


I'm not sure of the rationale behind it, and can't personally vouch for it, but have colleagues who vow that there is something to that, so I'm just tossing that out there...

There can be more factor, now first try to sort out factor, may be your sql query is causing speed issue:

1)  Can you post your sql query and table structure?
2) What is completion time when you run  same SQL( query) in MS Access ?


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:

 In addition to what's been said, make sure that the DB is not being virus scanned at open.  I'd also look carefully at indexing.

 Finially I don't believe it applies in this case, but tables have a subdatasheet property, which should be set to none.


Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:

 Should have also mentioned that there are specific instances/situations that can cause problems.  SMB2 has been a lot of headaches:

A computer that is running Windows 7 or Windows Server 2008 R2 takes four minutes to open a Microsoft Office 2003 document from a network share

Also, if your running a multi-core processor, JET/ACE can get hung up in garbage collection.  Setting the cache larger (Maxbuffers) takes care of that.

 As mbizup said, lots of things that could apply to this.  A one minute open time is not normal.  So I would suggest testing in a different situation and see if you get the same results (ie. DB local and not on a server, different PC, etc).

Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thank you all for the help
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.