BUG: Error Not Returned on Dbconvert Failure (Truncation)

Last reviewed: July 8, 1997
Article ID: Q170303
The information in this article applies to:
  • Microsoft SQL Server Programmer's Toolkit, version 6.0
BUG #: 15592 (NT: 6.00)

SYMPTOMS

When converting a DBFLT8 to a DBNUMERIC that results in a truncation, dbconvert returns -1, but there is no error message (error handler) indicating the reason for the dbconvert failure.

WORKAROUND

To work around this problem, ensure that the DBNUMERIC is initialized (precision, scale) so that no truncation will occur.

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server 6.0. This problem does not occur in SQL Server 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Keywords : kbbug6.00 kbusage SSrvGen
Version : 6.0
Platform : WINDOWS
Issue type : kbbug
Resolution Type : kbworkaround


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: July 8, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.