BUG: Float Data May Cause Data-Conversion Overflow in ISQL/wLast reviewed: April 29, 1997Article ID: Q114524 |
The information in this article applies to:
- Microsoft SQL Server Programmer's Toolkit, version 4.2BUG# 9661 (4.2b)
SYMPTOMSCertain floating point numbers are not correctly displayed by ISQL/w. For example, executing the following TRANSACT SQL statement:
SELECT 0.0006Will generate
-------------------- * (1 row(s) affected) DB-Library: Data-conversion resulted in overflow.This is caused by the inherent loss of precision incurred when representing float data. Certain floating point values will be converted into wide character strings which cannot be displayed by ISQL/w - - 0.0006 but will be converted to the following string 6.000000000000001e-004.
WORKAROUNDUse the TRANSACT SQL STR function when retrieving data of type FLOAT. Unless information that can only be represented as float needs to be stored, use the other available datatypes.
STATUSMicrosoft has confirmed this to be a problem in SQL Server version 4.2b for OS/2. This problem does not occur in version 6.0.
|
Additional query words: dblib dbroutines dbconvert
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |