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 8328091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:19:58+00:00 2026-06-09T01:19:58+00:00

How to represent SQL Server type numeric(38,0) as IDL type (COM type library)? Thanks

  • 0

How to represent SQL Server type numeric(38,0) as IDL type (COM type library)?

Thanks a lot for the help!

P.S. For example, SQL Server type int is long type in IDL.

  • 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-09T01:20:00+00:00Added an answer on June 9, 2026 at 1:20 am

    Numbers in COM could be:

    • Integers up to 64 bits (Int64) – so up to 19 significant digits;
    • Floating-point values up to 64 bit (double) – from 15 – 17 significant decimal digits precision.

    So for 38 digits, none of those types would match your request. You can achieve the best resolution with Int64, but if your value is higher than 9,223,372,036,854,775,807, you will reach an overflow.

    I think the easier compliant type is a good old BSTR (widestring), in which you can store as many digit as wished – but encoded as plain text. On the code side, you will need to have a BCD library to process your high-resolution numbers: no Delphi native type (even extended) has such a resolution.

    Edit: Another option (thanks Ondrej for the proposal) is an array of bytes. IMHO a COM binary array is less easy than a text content (and less efficient about speed, even if it uses less memory). Encoding option could be good old BCD. You may be able to find libraries on both sides of the COM object.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In SQL Server 2008, I want to represent an integer as a 3-character string
In SQL Server we can write data AS Numeric(15,10) .. what will the equivalent
i declared a column as numeric(5,3) in sql server 2008 exp r2 and i
How do I map NHibernate type to SQL Server's TIME type? I'm using NH
I'm using MS SQL Server 2008. I have a column of type XML that
I have a SQL Server column of type XML containing some records with more
This is in SQL Server 2008. I plan to create two tables to represent
I guess should be some visualization tools (MS SQL Server) to represent some hierarchical
I'm thinking about how to represent a complex structure in a SQL Server database.
I'm looking into using monad comprehensions to represent SQL queries, and generate the appropriate

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.