The information in this article applies to:
SYMPTOMSIf a table that contains a date field is queried on an Oracle server, version 8.0.5.0, from a parameterized SELECT statement, an invalid error occurs. For example, this code would cause the error:
The Oracle driver reports the following error message from Oracle when trying to derive column information:
CAUSEThe Microsoft ODBC for Oracle driver (Msorcl32.dll) binds the parameter only after deriving column information from Oracle, and in the case of date fields it gets an error message from Oracle, which it incorrectly reports back. RESOLUTION
One way of getting around the problem is to tell Oracle that the parameter will be a date parameter, which resolves the problem.
Use this code:
With this implementation, the column information is derived correctly.An updated version of the Microsoft ODBC for Oracle, the msorcl32.dll file version 2.573.4202.3, which corrects this problem, is installed in the Microsoft Data Access Components (MDAC SP2 GA) update 2.1.2.4202.3. STATUSMicrosoft has confirmed that this is a problem with the Microsoft ODBC for Oracle driver (msorcl32.dll) versions 2.573.2927, 2.573.3513 and 2.573.3711, which report the error message from Oracle incorrectly. MORE INFORMATION
This problem can be reproduced using these steps:
Additional query words:
Keywords : kbODBC odbcOracle kbGrpMDAC kbGrpODBC |
Last Reviewed: October 26, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |