FIX: T-SQL Cursors Ignore NOCOUNT Query Option & Trace Flag 364Last reviewed: March 17, 1998Article ID: Q172549 |
The information in this article applies to:
SYMPTOMSWhen executing a Transact-SQL cursor, the cursor returns empty result sets (DONE_IN_PROC messages) even when NOCOUNT or trace flag 3640 is enabled. This means that if you do 100 fetch operations into local variables, the client must process 100 empty result sets.
CAUSEThe NOCOUNT and trace flag 3640 settings are ignored by cursor processing.
STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server versions 6.0 and 6.5. This problem was corrected in the latest Microsoft SQL Server 6.5 U.S. Service Pack. For information on obtaining the service pack, query on the following word in the Microsoft Knowledge Base (without the spaces):
S E R V P A C K MORE INFORMATIONFor more information, see the following articles in the Microsoft Knowledge Base:
ARTICLE-ID: Q165951 TITLE : INF: Result Processing for SQL Server ARTICLE-ID: Q151599 TITLE : INF: How to Process Results in an ESQL Application |
Additional query words: tsql t-sql transql tran-sql
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |