.net - OverflowException reading decimal value from db -
i have sql server column defined decimal(32,15). when try read using sqldatareader.getvalue(), find maximum db value can accommodated 79,228,162,514,264. larger value throws overflowexception. surprising, since .net decimal type 128 bits , provides 28 29 digits of precision. can explain?
use sqldatareader.getsqldecimal() instead of sqldatareader.getvalue().
here example of problem in detail:
Comments
Post a Comment