• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 337
  • Last Modified:

VB.net performance issue with backend Access database

Hi

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 & ";"
0
Murray Brown
Asked:
Murray Brown
3 Solutions
 
mbizupCommented:
There are a lot of factors that can influence the performance of your database.  This article is well worth the read:

http://msdn.microsoft.com/en-us/library/dd942824(v=office.12).aspx

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:

H:\Folder1\folder2\folder3\folder4\folder5\mydatabase_be.accdb

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

H:\Folder1\mydatabase_be.accdb

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

0
 
sindhuxyzCommented:
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 ?

0
 
Jim Dettman (Microsoft MVP/ EE MVE)PresidentCommented:

 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.

 
0
 
Jim Dettman (Microsoft MVP/ EE MVE)PresidentCommented:

 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
http://support.microsoft.com/kb/982860

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

Jim.
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thank you all for the help
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now