Query to change the datatype of a table.

Abhisek
Posted by Abhisek under Sql Server category on | Views : 1472
ALTER TABLE [table_name] ALTER COLUMN [column_name] [new_datatype]


Example:-
ALTER TABLE Student ALTER COLUMN Name varchar

Comments or Responses

Login to post response