The information in this article applies to:
SYMPTOMSA 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. RESOLUTIONModify 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. STATUSThis behavior is by design. MORE INFORMATION
When SET NOCOUNT is ON, the count (indicating the number of rows affected by a Transact-SQL statement) is not returned. When SET NOCOUNT is OFF, the count is returned. ExamplesThis example (when executed in the osql utility or SQL Server Query Analyzer) prevents the message (about the number of rows affected) from being displayed:
Additional query words:
Keywords : kbODBC odbcSQL kbSQLServ650 kbSQLServ700 kbGrpMDAC kbGrpODBC |
Last Reviewed: October 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |