|
Question : Converting a Binary to a Varchar
|
|
I am trying to convert a binary number to a varchar so I can include it into a string. If do a straight Convert then I get blank, if I convert to an integer I get a different number. Help tells me that converting from a binary to an integer and then converting back to a binary will not result in the same binary number that you started out with.
I need to know if anyone has been able to successfully convert a binary to a varchar and back again, and how they did it.....
|
|
Answer : Converting a Binary to a Varchar
|
|
write master.dbo.fn_varbintohexstr
|
|
|