The information in this article applies to:
SYMPTOMSUnder certain circumstances, on a table with few rows, a keyset cursor is created on a SELECT statement with an ORDER BY clause even when a dynamic or a server-side forward_only cursor is specified and all the rules for creating dynamic/forward_only cursors are satisfied. WORKAROUND
Specify an explicit optimizer hint to use the unique index that you created
on the column(s) used in the ORDER BY clause of the SELECT statement.
In ISQL/W run the following script:
In ODBC Test:
If you have more than 300 rows in the table, you might not see this problem. It is worth noting that on a small table there is no significant performance difference between a dynamic and a keyset cursor. Additional query words: ODBC RDO VB MFC Database Classes
Keywords : kbprg SSrvProg |
Last Reviewed: March 30, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |