varbinary to string on SQL Server

后端 未结 7 1104
时光说笑
时光说笑 2020-11-27 15:41

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

7条回答
  •  迷失自我
    2020-11-27 16:14

    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).

提交回复
热议问题