Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i need to change datatype in my database from int to varchar.
what is query for that?
Posted
Comments
syed shanu 15-Dec-14 1:35am    
What problem did you find in that.You can do using alter table and also you can alter your SP.
Member 11221185 15-Dec-14 1:40am    
I solved this..thank u

To update data type for column, use ALTER TABLE[^].
To convert data type in query, use CAST or CONVERT[^]
 
Share this answer
 
v2
 
Share this answer
 

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