I have a Numeric(26,10) column “x” in SQL Server 2008. When I try to read the column values using TADOQuery’s FieldByName(‘x’).AsExtended, I get an error “32,7893256547 is not a valid BCD value”.
“32,7893256547” is one of the column values.
This happens only on some computers. On those computers, When I change the windows setting “No. of digits after decimal” to 9 in region settings, then everything works fine.
I see that column is mapped to TFMTBCDField in ADOQuery.
Is it a problem with BCD conversions / formatting ? And how can I solve this problem?
Platform:
Windows 7, Delphi 2009, SQL Server 2008.
I had the same problem when I tried to use
Solved with this: