Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2004
    Posts
    107

    Unanswered: Converting a number to hexadcimal

    Is there any function in SQL-Server which converts a number into its Hexadecimal equivalent..? if not, how should I convert a number to its hexadecimal equivalent..?

    Thanks
    Jake

  2. #2
    Join Date
    Jan 2003
    Location
    India
    Posts
    523
    something like:
    SELECT CAST( 123456 AS BINARY(4) )

  3. #3
    Join Date
    Feb 2004
    Posts
    107
    Originally posted by harshal_in
    something like:
    SELECT CAST( 123456 AS BINARY(4) )

    Thanks Harsh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •