PRB: "Error Retrieving Record" with SQL Statement in Open() (155850)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 4.2
This article was previously published under Q155850 SYMPTOMS
The following exception is thrown in a MFC database application that
specifies a SQL statement in the call to CRecordset::Open():
Error retrieving record
The message appears in a message box as well as in the Output window of the
Visual C++ debugger.
The following debug messages are also displayed in the debug window if
database tracing is on:
Warning: <type name> converted from SQL type <type number>.
Error: fetching row from server.
Error in row
Error in assignment on column number <#> (<column name>)
CAUSE
The Microsoft Access ODBC driver returns these errors if a column is bound
to an unsupported data type. The error message returned is specific to the
32-bit Microsoft Access ODBC driver that ships with Visual C++ 4.x.
Modification Type: | Major | Last Reviewed: | 12/10/2003 |
---|
Keywords: | kbDatabase kbprb KB155850 |
---|
|