varbinary to string on SQL Server

Bilgin Kılıç picture Bilgin Kılıç · Jul 20, 2010 · Viewed 270.2k times · Source

How to convert a column value from varbinary(max) to varchar in human-readable form?

Answer

Gunjan Juyal picture Gunjan Juyal · Mar 8, 2013

The following expression worked for me:

SELECT CONVERT(VARCHAR(1000), varbinary_value, 2);

Here are more details on the choice of style (the third parameter).