FIX: DAO Oracle and the NUMBER Datatype (180193)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft ODBC for Oracle version 2.5 Build 2.573.4202
- Microsoft Data Access Components 2.1
This article was previously published under Q180193 SYMPTOMS
When using DAO/Jet to access an Oracle database, you get either blank rows
back in a grid or rows filled with #DEFINE (when using Access).
CAUSE
This behavior is caused by DAO having a problem determining the datatype
for Oracle columns defined as NUMBER.
RESOLUTION
This behavior is only exhibited when the Oracle columns have been defined
as NUMBER. If you define the columns as NUMBER(38,0), which is the
equivalent of just NUMBER, everything works as expected. When you use
DAO/Jet to access an Oracle database, you need to specify the size (total
digits) and precision for table columns of type NUMBER.
STATUS
Microsoft has confirmed this to be a problem in the versions of Microsoft
FrontPage listed at the beginning of this article.
This bug was corrected in MDAC 2.1 Service Pack 2.
You can obtain the latest version of MDAC from the following Microsoft Web site:
REFERENCES
ORACLE: The Complete Reference by George Koch and Kevin Loney
For additional information, please see the following article in the
Microsoft Knowledge Base:
175018
: HOWTO: Acquire and Install the Microsoft Oracle ODBC Driver
(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Sam Carpenter, Microsoft Corporation.
Modification Type: | Minor | Last Reviewed: | 3/14/2005 |
---|
Keywords: | kbbug kbDriver kbfix kbMDAC210SP2fix kbMDACNoSweep kbOracle KB180193 |
---|
|