change the column datatype in sql code example
Example 1: sqlserver add column to table
ALTER TABLE dbo.doc_exa
ADD column_b VARCHAR(20) NULL,
column_c INT NULL ;
Example 2: modify column name in tsql
sp_rename 'table_name.old_column', 'new_name', 'COLUMN';