I\'m looking for a way to transform a genuine string into it\'s hexadecimal value in SQL. I\'m looking something that is Informix-friendly but I would obviously prefer somet
OLD Post but in my case I also had to remove the 0x part of the hex so I used the below code. (I'm using MS SQL)
convert(varchar, convert(Varbinary(MAX), YOURSTRING),2)