Jun 1, 2006 #1 CodingIsFun Programmer Joined Apr 9, 2004 Messages 134 Location US Hi all experts, Does anyone know how to convert a varbinary field into readable text? thanks in advance...
Hi all experts, Does anyone know how to convert a varbinary field into readable text? thanks in advance...
Jun 1, 2006 #2 SQLDenis Programmer Joined Oct 1, 2005 Messages 5,575 Location US Take a look at this --this will make it varbinary SELECT CONVERT(VARBINARY(31),'Wasabi') this will make it plain text again SELECT CONVERT(VARCHAR(31),0x576173616269) Denis The SQL Menace SQL blog:http://sqlservercode.blogspot.com/ Personal Blog:http://otherthingsnow.blogspot.com/ Upvote 0 Downvote
Take a look at this --this will make it varbinary SELECT CONVERT(VARBINARY(31),'Wasabi') this will make it plain text again SELECT CONVERT(VARCHAR(31),0x576173616269) Denis The SQL Menace SQL blog:http://sqlservercode.blogspot.com/ Personal Blog:http://otherthingsnow.blogspot.com/