Convert image datatype into varchar in sql server 2008

前端 未结 5 1902
后悔当初
后悔当初 2021-02-05 07:18

We have TestPartner database in SQL Server. The descriptions of the bugs are stored in \"image\" datatype column. We need to write a query to display the data as html table. We

5条回答
  •  清歌不尽
    2021-02-05 07:26

    You can convert also like this

    convert (varchar(max) , convert (varbinary (max) , blob_data)), cast(cast(blob_data as binary) as varchar(max)) 
    

提交回复
热议问题