Solved

vb access 97 suddenly very slow over network

Posted on 2004-09-27
10
363 Views
Last Modified: 2013-12-25
gday,

I have a little application written in VB6 with an access 97 backend. The application is run from a drive shared  on a windows 2000 server. There are about 10 desktops all running xp. Both the server and the desktops have the latest sp's.

A couple of days ago the application started to run very slowly. I have made no changes to it for months. I can browse files on the server from a desktop without any problems, accessing word and excel files stored on the server seems to work fine. When I run the application from a local drive it runs fine.

Opening the access database itself seems to be very slow too. The database is not too big, only about 80mb.  I'm not really a network person have run out of ideas. Any help would be greatly appreciated. The people who use this application are starting to become a little twitchy and when pushed too far they are capable of extreme violence.

Cheers

Paul
0
Comment
Question by:pkinaus
  • 2
  • 2
  • 2
  • +2
10 Comments
 
LVL 8

Expert Comment

by:mladenovicz
ID: 12158374
Try to Compact database
0
 
LVL 8

Expert Comment

by:mladenovicz
ID: 12158384
Tools -> Database Utilities -> Compact And Repair Database
0
 

Author Comment

by:pkinaus
ID: 12158396
Have already tried to Compact the database.
0
 

Expert Comment

by:kellysys
ID: 12159826
Your server is just providing a file sharing role. 10 users accessing a 80MB database file over the network can expose lots of issues.

Hope there is no issue with free space / fragmentation on the server.

What else could cause this?

(1) Lots of new records inserted into the database
this could affect your query optimisation, and as at (4) below, since all the data is transmitted over the network this could be become very apparent quite suddenly. It is possible that a query will not be optimised as previously. The database being quicker locally would be quite normal. But this would be especially true if the queries were not properly optimised by having the right indexes.

(2) So check the indexes and make sure that they are right for your queries.

(3) Indexes have been corrupted
I have seen ms access databases lose indexes. You could try to create a new database and then import all the objects from the old database. This can both solve and expose issues in the original database.

(4) Faulty network
All data in queries is transmitted over the network. MS Access databases used like this will expose network problems more than other types of file sharing - like opening a spreadsheet or a document

(5) In some cases I found having a local database with linked tables to the server database helped with performance.

All these are issues I have personally seen that can cause your type of problem.

Hope they are of assistance.
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:pkinaus
ID: 12166222
Thanks for the suggestions kellysys,

It turned out to be the anivirus software we are (were) using. We have been running it for a while with no problems, but for some reason it starting to take a dislike to our application. I removed it and the speed went back up to normal again.

Cheers for your post though, I'm sure your suggestions will be of help some time in the future.
0
 

Expert Comment

by:kellysys
ID: 12167823
And all that advise for no points !!
Glad you found the problem. Antivirus can be a nightmare sometimes.
0
 
LVL 27

Expert Comment

by:Dabas
ID: 12213618
G'day pkinaus mate!
I see I am late....
I have had exactly the same issue.
Rather than remove the AntiVirus software, check its settings. In most of them you can remove .mdb from the list of extensions checked. .mdb extensions are considered dangerous as somebody might have written harmful code within them.
Since I only use the .mdb files from VB and not from Access itself, and never use .mdb files written by others, it is quite safe to remove from the AV list.

Dabas
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12996084
PAQed with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now