The information in this article applies to:
BUG# NT: 13504 (6.00) SYMPTOMS
Errors can occur when you open a server cursor on a UNION query where the
unioned SELECTs contain correlated subqueries which contain MIN() or MAX().
Db-library clients see the following errors:
ODBC clients see the following single error if they call SQLError():
The problem happens on all types of server cursors (Dynamic, Keyset, Static, Forward Only). STATUS
Microsoft 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.
WORKAROUND
Do not use a server cursor to process the command. Alternatively, perform
the two UNIONed SELECTs into temporary tables and then perform the union
between the temporary tables. For example, take:
and change it to:
Additional query words: sql6 cursor tsql
Keywords : kbprg SSrvProg SSrvTran_SQL kbbug6.00 |
Last Reviewed: March 24, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |