Additional SQL Server features and topics not covered by specific categories
I checked all the options, somehow this query is stuck in "ASYNC_NETWORK_IO" wait type.
That explains everything. It is most likely an application issue. This wait type means that SQL Server is waiting for the client to fetch the data from the output buffer. There are be two reasons for this error:
- Network issue. In your case it would happen if the application server for Dynamics CRM has a modem connection of 9600 baud to SQL Server. Well maybe not that bad, but definitely a connection below par.
- The application itself is misbehaving. Rather than reading all rows in one fell swoop, it reads a row, performs some calculations or whatever, then reads the next row etc.