PRB: Stored Procedure Calls May Result in Attentions Being Seen on SQL Server (240882)
The information in this article applies to:
- Microsoft SQL Server 6.5
- Microsoft SQL Server 7.0
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q240882 SYMPTOMS A SQL Server trace may reveal excessive Attentions and
Rollbacks due to client disconnects. However, the client does not receive an
error message. CAUSE SQL Server stored procedures, which are not expected to
return a resultset, may return a large volume of informational data (DONE_IN_PROC messages) that are occasionally sufficient to overrun a packet
buffer.
When this happens, the SQL Server driver issues a disconnect.
The most visible evidence of this disconnect is an Attention showing up in a
SQL Server trace. RESOLUTION Modify the SQL Server stored procedure so the first
instruction is SET NOCOUNT ON. This prevents the majority of DONE_IN_PROC messages from being sent back to the client and avoids the packet
buffer overflow. STATUS This behavior is by design.
| Modification Type: | Major | Last Reviewed: | 9/17/2003 |
|---|
| Keywords: | kbprb KB240882 |
|---|
|