BUG: Bcp_bind Does Not Correctly Convert Real DBFLT4

Last reviewed: April 9, 1997
Article ID: Q161351
The information in this article applies to:
  • Microsoft SQL Server, versions 6.0 and 6.5
BUG #: 16378 (Windows: 6.50) BUG #: 15685 (Windows: 6.00)

SYMPTOMS

In SQL Server 6.0 (release version) the error message "Error 10016: Requested data-conversion does not exist" was generated when you attempted a bcp_bind of DBFLT4 to a real or float column in the database.

This problem only occurred if the column in the database contained the NULLABLE attribute, and the bcp_bind specified zero (0) for the type parameter.

With SQL Server 6.0 Service Pack 3 and later, float, numeric, and decimal values are correctly added to the database. However, the real data type fails under the conditions described above.

The pervious error message is no longer generated, but you now receive the following in the output error file:

   #@ Row 1, Column 2: The row length exceeds SQL Server's maximum
   allowable size. @# 1.0

CAUSE

Defaulting the program data type to the SQL Server data type results in comparing a DBFLT4 in the code to a NULLABLE data type, and the DB-Library conversion routines are not properly handling the conversion.

DB-Library fails to map and convert a DBFLT4 program variable to a nullable float value.

WORKAROUND

To work around this problem, specify SQLFLT4 for the bcp_bind type value.

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server versions 6.0 Service Pack 3 and 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: SP3 dblib db-lib dblibrary
Keywords : kbbug6.00.sp3 kbbug6.50 kbusage SSrvDB_Lib SSrvProg
Version : 6.0 SP3 6.5
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 9, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.