The information in this article applies to:
BUG #: 54210 (SQLBUG_70) BUG #: 55384 (SQLBUG_70) SYMPTOMS
A behavior change has occurred in SQL 7.0 for when a cursor is declared that contains a variable argument in the where clause. In SQL Server 6.5, the query plan is created at the time the cursor is opened. Therefore, if the cursor is closed and not deallocated and the variable in the where clause is updated, upon re-opening the cursor, the resultset is refreshed based off the current value of the variable. WORKAROUNDTo workaround this problem, you can either:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATIONThe following pseudocode example may illustrate the change in behavior better between SQL 6.5 and SQL 7.0:
REFERENCESSQL Server Books Online, "DECLARE CURSOR (T-SQL)"Additional query words: kbbug7.00 SSrvStProc SSrvProg
Keywords : kbdocerr SSrvProg SSrvStProc kbbug7.00 kbSQLServ700bug |
Last Reviewed: May 6, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |