Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/170303

From BetaArchive Wiki
Knowledge Base

BUG: Error Not Returned on Dbconvert Failure (Truncation)

Article ID: 170303

Article Last Modified on 12/2/2002


  • Microsoft SQL Server Programmer's Toolkit

This article was previously published under Q170303

BUG #: 15592 (NT: 6.00)


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.


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


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: kbbug kbusage KB170303