Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

how to convert datatype from varchar to binary(16) in db table in sql server 2005?

thanks,
kk
Posted
Updated 29-May-13 0:54am
v3

1 solution

Needs to be done with an explicit cast. More info here:
http://msdn.microsoft.com/en-us/library/aa226054%28v=sql.80%29.aspx[^]

Good luck!
 
Share this answer
 
Comments
kk2014 29-May-13 6:52am    
hi,
i want to convert datatype varchar to binary(16) in my db table.
how can i do that?
thanks.
IpsitaMishra 29-May-13 7:03am    
Do you want to change any column's type of the db table from varchar to binary(16)?
kk2014 30-May-13 6:04am    
no i have column 'password' which have datatype varchar(50) right now but i want to change datatype to binary(16).
how can i do it?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900