Storing Hexadecimal Datatypes

  • I have two columns, in a new table I created, that will store hexadecimal values. One will be 8bit hex and the other 16bit hex. What is the best way to store this type of data? Varbinary, image, etc... Any help will be appreciated.

  • Using BOL (Books On Line) for a reference. Think about using a single column whose data type is varbinary.

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • I guess my recommendation would be BINARY(1) and BINARY(2).

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • Thanks for the replies.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply