How do i convert a hexadecimal VARCHAR to a VARBINARY in SQL Server -


i have hexadecimal string in varchar field , need convert varbinary.

how 1 this?

you create udf used in this post. , do:

select cast(dbo.hex2bin('7fe0') varbinary(8000)) bin; 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -