FIX: OPENQUERY/OPENROWSET with DB2 Linked Server May Return Incorrect Results with Decimal Datatype (277716)
The information in this article applies to:
This article was previously published under Q277716
BUG #: 58467 (SQLBUG_70)
SYMPTOMS
Under the following conditions, use of the OPENQUERY or OPENROWSET function with a DB2 linked server may return decimal data with the decimal point incorrectly placed:
- You use the Microsoft OLE DB provider for DB2 (DB2OLEDB).
- The least significant digit (to the right of the decimal point) is zero (0).
For example, if the data type is DECIMAL(4,2) and the numeric value is 123.40, the OPENQUERY function incorrectly returns 12.34. However, if the value is 123.45, then the OPENQUERY function correctly returns 123.45.
The OPENROWSET function also exhibits the same symptoms.
CAUSE
The results from both the OPENQUERY and OPENROWSET functions are returned as rowsets from the provider. The data is then incorrectly retrieved from the rowsets.
WORKAROUND
To work around this problem, use one of these two methods:
STATUS
Microsoft has confirmed this to be a problem in SQL Server
7. This problem has been corrected in U.S. Service Pack 3
for Microsoft SQL Server 7. For information about
how to download and install the latest SQL Server Service Pack, see
the following Microsoft Web site:
For more information, contact your primary support provider.
Modification Type: | Major | Last Reviewed: | 7/19/2006 |
---|
Keywords: | kbBug kbfix kbQFE KB277716 |
---|
|