Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2009
    Posts
    6

    Unanswered: Convert HEX to RAW

    Does anyone know if there is a function in sybase to convert a HEX string to RAW format such as HEXTORAW in Oracle?

    Thanks

  2. #2
    Join Date
    May 2005
    Location
    South Africa
    Posts
    1,365
    Provided Answers: 1
    What does hextoraw do? Can you show an example
    Code:
    declare @c char(8)
    set @c='41214220'
    exec ('select convert(char(4),0x'+@c+'), convert(int,0x'+@c+')')
    
    -    ----------- 
    A!B   1092698656

Posting Permissions

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