The information in this article applies to:
SYMPTOMSThe Microsoft Foundation Classes (MFC) ODBC database classes supplied with Visual C++ have a CRecordset::Requery() method that refreshes the records in an open recordset. The CRecordset::Requery() method calls the ODBC API function SQLExecute() followed by SQLExtendedFetch(). If a record in a Dynaset type recordset is updated before calling CRecordset::Requery(), the following error message is generated:
RESOLUTION
Here are two ways to prevent this error when using the MFC ODBC classes:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This issue has been corrected in the Microsoft Oracle ODBC Driver version 2.573.2927 or higher. This driver can be found in Visual Studio 6.0, Data Access Software Development Kit (SDK) 2.0 or higher, and in the Microsoft Data Access Components (MDAC) version 2.0 or higher. You can download the latest version of MDAC 2.0 from the following Web address: http://www.microsoft.com/data/ MORE INFORMATIONSteps to Reproduce BehaviorThe easiest way to reproduce the bug is to use ODBCTest. The following steps use ODBCTest.
Additional query words: kbDatabase kbODBC kbOralce kbDriver kbMFC
Keywords : kbDriver kbODBC kbOracle odbcOracle kbGrpVCDB kbGrpMDAC kbMDAC200fix kberror |
Last Reviewed: November 16, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |