Click here to Skip to main content
13,146,402 members (53,864 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
hi,

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

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

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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!
  Permalink  
Comments
kk2013 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)?
kk2013 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web03 | 2.8.170915.1 | Last Updated 29 May 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100