We help IT Professionals succeed at work.
Get Started

SQL Query linked to Access Performance Tuning:  ASYNC_NETWORK_IO

526 Views
Last Modified: 2015-03-18
Hi Experts,

I have an Access application (linked to SQL database) that contains a form with 4 combo boxes, each one has is own record source as follows.

#1
SELECT Patients.ID, [LastName] & " " & [FirstName] AS Name, Patients.Address, Patients.HomePhone FROM Patients ORDER BY [LastName] & " " & [FirstName];

Open in new window

#2
SELECT Patients.ID, [FirstName] & " " & [LastName] AS Name, Patients.Address, Patients.HomePhone FROM Patients ORDER BY [FirstName] & " " & [LastName];

Open in new window

#3
SELECT Patients.ID, Patients.Address, [FirstName] + ' ' + [LastName] AS Name, Patients.HomePhone
FROM Patients
ORDER BY Patients.Address;

Open in new window

#4
SELECT PatientsPhoneUnionQry.ID, PatientsPhoneUnionQry.HomePhone, PatientsPhoneUnionQry.Expr1 FROM PatientsPhoneUnionQry ORDER BY PatientsPhoneUnionQry.HomePhone;

Open in new window


Now when looking at the SSMS Activity Monitor I realized that query #3 is the most expensive one, and is also the one always causing ASYNC_NETWORK_IO, I am wondering why is it that way and what can I do to improve it?

FYI- Currently the table only has a PK clustered index on the ID column, I guess additional indexes would be required, just want to know which one's do you advise.
Comment
Watch Question
IT Engineer
CERTIFIED EXPERT
Distinguished Expert 2017
Commented:
This problem has been solved!
Unlock 3 Answers and 43 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE