convert BLOB to text in sql
I have a field in my database table with data type as BLOB .How can I view the content as text/string using a SELECT query in SQL . the content's MIMETYPE is 'text/xml charset=UTF8' I tried with this, I'm not sure if im right with the syntax SELECT CAST((SELECT column FROM myTable WHERE ID='56')AS CHAR(10000) CHARACTER SET utf8) and also SELECT CONVERT(VARCHAR(max), CAST((SELECT column FROM myTable WHERE ID='56') as binary)) from BIZDOCCONTENT many Thanks urbanspr1nter Try: SELECT CONVERT(object USING utf8) FROM tablename Try this query - SELECT CONVERT(column USING utf8) FROM myTable WHERE ID