Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

C# ADO.Net doesn't support precisions > 26

$
0
0

We're trying to load up numeric values using C# ADO driver into fields of type numeric (38,8)

 

In C# we're using Decimal which supports precision upto 28. https://msdn.microsoft.com/en-us/library/364x0z75.aspx

 

However, the C# ADO drivers for Sybase only support up to precision 26 even thought the database does.

As soon as you use precision > 26 you get the error message "Data overflow. Increase specified column size or buffer size"

(looks similar to this issue ADO.NET data provider supports max precision of 26 numbers in decimals #toadworld)

 

We've checked the drivers and the check exists in all the SDK releases up to SP130 and the value 26 is hard coded in the drivers.

 

Why the limitation ?

How can data be loaded into numeric(38,8) using C# ?

Is it fixed in later SDKs


Viewing all articles
Browse latest Browse all 3587

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>