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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:53:54+00:00 2026-05-13T11:53:54+00:00

According to the documentation, native (binary) data can be imported or exported with bcp

  • 0

According to the documentation, native (binary) data can be imported or exported with bcp formatted in the native SQL Server data formats. Examples of these are SQLFLT8, SQLFLT4, SQLMONEY or SQLNUMERIC.

Does anyone know either what the data formats for the various types are, or where documentation specifying these formats might be found. For example, is a SQLFLT8 stored as an IEEE double precision number or in some other format?

Edit: From the answers by kevchadders and Andrew I had a little epiphany did a little bit of googling for #define and typedef to see if I could find C header files with definitions. This came up with a file odbcdss.h; the answer I’ve posted below has some out-takes from the file, which looks quite promising.

  • 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-05-13T11:53:54+00:00Added an answer on May 13, 2026 at 11:53 am

    I’m not sure if the theory will hold, but finding out the internal storage of the types can be achieved using some SQL and a bit of figuring out. I did this for the new datetime2 / datetimeoffset on my blog to speifically get the internal binary format as I was interested to see how they got the additional accuracy.

    As an example for Money

    declare @test money
    set @test = 12.34
    select @test -- shows 12.34 as expected
    
    declare @binaryValue binary(8)
    set @binaryvalue = convert(binary(8),@test)
    select @binaryvalue 
    

    Output : 0x000000000001E208

    That is 123400 when considered as a decimal number, money is stored to 4 decimal places so that would indicate 12.3400 as the value, reversing this in theory a value of just 1 in hex should be 0.0001

    declare @test money
    declare @binaryValue binary(8)
    set @binaryvalue = 0x0000000000000001
    set @test = convert(money,@binaryvalue)
    select @test
    

    Outputs 0.0001

    The next thing I would then check is the negative numbers,

    declare @test money
    set @test = -12.34
    select @test -- shows -12.34 as expected
    
    declare @binaryValue binary(8)
    set @binaryvalue = convert(binary(8),@test)
    select @binaryvalue 
    

    Output : 0xFFFFFFFFFFFE1DF8

    So that looks like it is a signed 8 byte number, since it has just take the number away from FF…etc. A quick check with -0.0001 gives out all 0xFFF….FFF as expected and -0.0002 gives 0xFF….FFE as expected.

    Whether this holds for BCP I am not sure, but as an internal storage format I would take a guess at a signed 8 byte integer that has an assumed 4 decimal places.

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

Sidebar

Ask A Question

Stats

  • Questions 316k
  • Answers 316k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Use "MKCOL" method of "HttpWebRequest" . May 13, 2026 at 11:25 pm
  • Editorial Team
    Editorial Team added an answer Try to run the DebugView for read the messages from… May 13, 2026 at 11:25 pm
  • Editorial Team
    Editorial Team added an answer You are sleeping for random number of seconds. sleep((long)(Math.random()*1000)); //… May 13, 2026 at 11:25 pm

Related Questions

I am trying to write a C# P/Invoke wrapper for a C API (a
I'm newish to NHibernate, and am attempting to wire up to a DB2 table
I'm currently poking around with a new archive format and was interested in implementing
According to the documentation, they're pretty much interchangeable. Is there a stylistic reason to
According to the documentation, the decimal.Round method uses a round-to-even algorithm which is not

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.