hi,
i wish to know about how to convert varchar to varbinary by using convert function.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Suthish NairPosted Jan 30, 2011, 1:28 PM
So other members can easily find the answers.
Suthish NairPosted Jan 29, 2011, 5:43 AM
http://www.c-sharpcorner.com/Forums/UploadFile/105796/
krithika muthukrishnanPosted Jan 29, 2011, 3:56 AM
Vijay YadavPosted Jan 28, 2011, 8:29 AM
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