How to convert a column value from varbinary(max)
to varchar
to read..
views:
44answers:
2
+1
A:
Can you just cast it? This works for me.
declare @b varbinary(max)
set @b = 0x5468697320697320612074657374
select cast(@b as varchar(max)) /*Returns "This is a test"*/
Martin Smith
2010-07-20 13:02:02