FIX: Cursor Library Returns Duplicate Row in Asynchronous ModeLast reviewed: September 9, 1996Article ID: Q124897 |
The information in this article applies to:
SYMPTOMSWhen the ODBC Cursor Library is used to set up a static cursor with a driver whose asynchronous mode is enabled, it returns duplicate rows under certain circumstances. These duplicate rows are returned every time an asynchronous operation with the driver returns SQL_STILL_EXECUTING. The number of duplicate rows retrieved on subsequent fetches (MoveNext's in MFC) is variable. Certain conditions can cause as many as 500 consecutive repetitions of the same record. This behavior has typically been observed in MFC applications using the ODBC database classes to build snapshots (which cause the ODBC Cursor Library's static cursor implementation to be used).
WORKAROUNDUsers of MFC database classes can avert this behavior by:
STATUSMicrosoft has confirmed this to be a problem in ODBC Cursor Library version 2.00.1510. This problem has been fixed in the 32-bit version of the ODBC 2.5 Cursor Library (ODBCCR32.DLL, 2.50.3006). The 16-bit cursor library has not been changed. If you are using the 16 bit SQL Server driver, this should not be a problem because you can use the server side cursors in SQL Server version 6.0 and eliminate the need for the cursor library. If you are using the Access driver, you need to use the 32-bit driver and the new 32-bit cursor library.
MORE INFORMATIONYou can get ODBC 2.50 components from:
|
Additional reference words: 2.00.1510 MFC VISUAL C++ MSVC Windows NT
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |