BUG: Declare Cursor May Be Ignored With Correlated SubqueryLast reviewed: May 2, 1997Article ID: Q149346 |
The information in this article applies to:
SYMPTOMSA batch containing a declare cursor that contains certain correlated subqueries will be ignored. No error messages are generated, but none of the commands in the batch are executed.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft SQL Server version 6.00. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
WORKAROUNDThe type of query that encounters the error is: DECLARE fred scroll CURSOR for select ( select max(t2.type) from titles t2 where t2.pub_id <> 1.pub_id) from titles t1 go This can be recoded: DECLARE fred scroll CURSOR for select max(t2.type) from titles t1 , titles t2 where t1.pub_id <> t2.pub_id group by t1.title_id go
|
Additional query words: cursor sql6
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |