Question

I have a poorly written application running a SELECT *, resulting in a 2MB result set every few seconds. I cannot correct this. I am confused though,by the connection encountering ASYNC_NETWORK_IO waits. The application is local to the database server.

I have verified the session_id in dm_exec_connections is 'Shared memory'. The client_net_address is 'local machine'.

Anyone ever experienced this before? Or able to explain to me why this is happening?

Thanks!

Was it helpful?

Solution

ASYNC_NETWORK_IO also happens when the app is NOT reading the data fast enough from SQL Server. Note that this is NOT SQL Server issue but its the app issue. Make sure the app is reading the data as a set instead of row by row.

OTHER TIPS

Even though the application is local, the communication will happen using the networking protocols. Hence, slower data transfer will still show up as ASYNC_NETWORK_IO even on the local machine.

Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange
scroll top