hi,
i wish to know about how to convert varchar to varbinary by using convert function.
Convert function
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Vijay YadavRank #1,637 · 943 reputationPosted Jan 28, 2011, 3:29 AM EST
you can do like this:
DECLARE @X varbinary(20)
Set @X = CAST('Testing' As varbinary(20))
Select @X As [varbinary], CAST(@X as varchar(20)) As [varchar]
Thanks,
Vijay
krithika muthukrishnanRank #8,369 · 223 reputationPosted Jan 28, 2011, 10:56 PM EST
Suthish NairRank #92 · 22.8K reputationPosted Jan 29, 2011, 12:43 AM EST
http://www.c-sharpcorner.com/Forums/UploadFile/105796/
Suthish NairRank #92 · 22.8K reputationPosted Jan 30, 2011, 8:28 AM EST
So other members can easily find the answers.