PRB: SQL Distributed Query with Oracle NUMERIC Column Gives Error (221552)
The information in this article applies to:
- Microsoft SQL Server 7.0
- Microsoft OLE DB Provider for Oracle 2.0
- Microsoft OLE DB Provider for Oracle 2.1
- Microsoft OLE DB Provider for Oracle 2.5
- Microsoft OLE DB Provider for Oracle 2.6
This article was previously published under Q221552 SYMPTOMS
Attempting to use an Oracle linked server using the MSDAORA OLE DB provider,
which queries a table with a NUMERIC column, may give an error similar to the following:
Server: Msg 7354, Level 16, State 1, Line 1
OLE DB provider 'MSDAORA' supplied invalid metadata for column 'columnname'. The data type is not supported.
The query may fail also if the Numeric column is not in the select list.
CAUSE
The column with Numeric datatype has no Length specified (no Precision, no Default, allows NULL). The number datatype without a precision and scale is represented in Oracle by a variable-length numeric with precision of up to 255. There is no SQL Server type that this can be mapped to without loss of precision.
WORKAROUND
Here are four methods to try to work around the problem:
Modification Type: | Major | Last Reviewed: | 12/5/2003 |
---|
Keywords: | kbDatabase kbOracle kbprb kbProvider KB221552 |
---|
|