NETWORKIO waits when using Access 2002 form front end to SQL Server 2000

Posted on 2004-04-26
Last Modified: 2012-05-04
I am working on a system that uses Access 2002 to provide a front-end to a SQL Server 2000 database via ODBC linked tables. The system started life as an Access database and has been moved to SQL Server using the Upsizing Wizard. I have been gradually moving logic from the Access VBA to SQL Server stored procedures, UDFs, triggers etc., thus moving some of the strain from the client to the server.

We have noticed that the system tends to slow down through the day and looking at the activity on SQL Server I can see a number of NETWORKIO waits. Tracing this back, I can see that these are caused by certain forms in the system, with the Wait starting when the form is opened and continuing until the form is closed. Closing and re-opening the forms seems to speed up the system for a while.

The nature of the system is such that users tend to keep forms open for a large part of the day. And the users are reluctant for me even to put timeouts in the forms to close them after periods of inactivity.

Not all forms cause this problem and I have tried to compare good forms to bad ones to see whether there is a way of preventing these Waits. I have also tried creating new forms based on the same tables and I get the same problem, so it is probably more to do with the tables themselves rather than the forms.

Has anybody else experienced this behaviour, and is there anything that I should be looking for in the tables (or indeed the forms) that could cause these Waits?
Question by:ChrisThornton
  • 3
  • 2
LVL 34

Expert Comment

ID: 10918140
How are the forms bound to the data?  If you're using procs, make sure you have SET NOCOUNT ON at the beginning or you will see lots of networkio waits.

Basically, some networkio waits are normal--just depends on the amount of data, speed of the network, number of users, etc.  Just means sql is pushing the data faster than the client can handle it (or respond back).

Author Comment

ID: 10918413
Thanks for the response arbert.

The 'Record Source' on the form is set to a local Access table, which is a linked-table linked via ODBC to a SQL Server view based on a couple of sub-tables.

So there's no explicit dynaset created in the VBA code from a proc or dynamic SQL. Just for info, I do include SET NOCOUNT ON in all my procs.

I'm used to seeing NETWORKIO waits come and go, but then I'm more used to web-based systems or VB front-ends where I control the creation and destruction of recordsets. With this Access front-end, the waits just build up and up (for example, I'm looking at Enterprise Manager now and there are 5 NETWORKIO waits, the largest being 906922) and they are not released until the users close the forms. Maybe these waits aren't a problem, but clearing them certainly seems to improve performance.

Incidentally, there are only 6 users on a 100MBit LAN and about 29000 rows of data in the table in question (which Access is displaying 1 at a time via the form).

LVL 34

Accepted Solution

arbert earned 250 total points
ID: 10919022
"I'm looking at Enterprise Manager now and there are 5 NETWORKIO waits, the largest being 906922) and they are not released until the users close the forms."

I think this is more of a display issue with Enterprise Manger than anything (the not released part that is).  Perfmon and profiler will give you better indications of what's actually going on.  Unless you get rid of the linked tables and base your recordsource on  a proc or ADO recordset, there isn't going to be a whole lot you can do here.

Author Comment

ID: 10919250
Yes, I know Enterprise Manager isn't the best thing at the world at refreshing, but I was just taking a quick look. If you refresh the current activity and then look at the Process Info, the waits are still there, just with bigger numbers (the one I mentioned earlier is at 1061360 now).

I'll try building an ADO recordset and binding to that to see if it makes a difference. I'll let you know.

Author Comment

ID: 11424320
Just got back to this after some time looking at other stuff.

It does seem to behave better using ADO. Unfortunately the application is very large for an Access app and my client isn't too keen on me changing it to manually bind all the forms to ADO recordsets. It also doesn't lend itself to converting to an Access project as it uses a great many local temporary tables while doing calculations (a hang-over from its stand-alone Access days). I have encouraged the users to close the forms when they are not using them and this seems to help, so I think I'm going to let sleeping dogs lie on this one and close the question down. Points are yours Arbert.

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how the fundamental information of how to create a table.

809 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