BUG: Float Data May Cause Data-Conversion Overflow in ISQL/w

ID: Q114524


The information in this article applies to:

BUG# 9661 (4.2b)

SYMPTOMS

Certain floating point numbers are not correctly displayed by ISQL/w. For example, executing the following TRANSACT SQL statement:


   SELECT 0.0006 

Will 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.


WORKAROUND

Use 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.


STATUS

Microsoft 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


Keywords          : kbtool SSrvISQL 
Version           : 4.2 4.2b 4.2.11
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: March 19, 1999