728x90

 

Image -> Text

CONVERT(VARCHAR(MAX),CONVERT(VARBINARY(MAX),field))

varbinary -> Text

CONVERT(VARCHAR(MAX),convert(varbinary(4000),field))

XML -> Text

cast(field as xml) as Field_Name

728x90

+ Recent posts