Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8440245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:14:18+00:00 2026-06-10T08:14:18+00:00

I have a Numeric(26,10) column x in SQL Server 2008. When I try to

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T08:14:20+00:00Added an answer on June 10, 2026 at 8:14 am

    I had the same problem when I tried to use

    ADOQuery1.FieldByName('YourField').AsString;
    

    Solved with this:

    BCDToStrf(ADOQuery1.FieldByName('YourField').AsBCD,ffFixed,11,3) ;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an nvarchar SQL column which contains mostly numeric values. I'm trying to
I retrieve numeric/decimal/money column values from SQL Server database as SQL_NUMERIC_STRUCT structures. Now I
I have one unicode column nvarchar in sql server database. I am storing numeric
We are inserting values into a SQL Server 2005 database column of type NUMERIC(19,5)
I'm using SQL Server 2005 and asp.net 2008 with c#...I have 2 tables Result
Using Sql Server 2005 Table1 ID Value ABC001 BCE002 ... I have search column,
I have a table with the column name: variant_markup datatype: numeric(4,3) I try to
We have a SQL Server database table that consists of user id, some numeric
in the sql server database I have a field that is type numeric. Precision
I am using ColdFusion 9.0.1 and SQL Server 2005. The column in my database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.