SAP Knowledge Base Article - Preview

2425095 - Overflow error on .Net decimal type to retrieve numerical data from ASE - SDK for SAP ASE


  • The native .NET data type used to retrieve decimal and numeric data cannot accommodate the full range of the underlying Adaptive Server data type causing overflow errors.

  • Error:

    System.OverflowException: Value was either too large or too small for a Decimal. at System.Decimal.FCallMultiply(Decimal& result, Decimal d1, Decimal d2) at Sybase.Data.AseClient.MTNumeric.MTNumericToDecimal(MTNumeric mtnum) at Sybase.Data.AseClient.DataInputStreamBuffer.ReadNumeric(Byte precision, Byte scale, Int32 length) at Sybase.Data.AseClient1.AseDataReader.Peform_Next() at Sybase.Data.AseClient1.AseDataReader.Read() at Sybase.Data.AseClient.AseDataReader.Read() at DecimalTest.Program.Main(String[] args) in Program.cs:line 91



  • SAP Sybase Software Developer Kit (SDK) 15.5
  • SAP Sybase Software Developer Kit (SDK) 15.7
  • Adaptive Server Enterprise ADO.NET Data Provider
  • Microsoft Windows x86 (32-bit)
  • Microsoft Windows x64 (64-bit)


Sybase SDK 12.5 ; Sybase SDK 15.0 ; Sybase SDK 15.5 ; Sybase SDK 15.7 ; Sybase Software Developer Kit 15.7


CR636449, 636449, CR#636449, Sybase.AdoNet.AseClient.dll, adonet, , KBA , BC-SYB-SDK , SDK , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.