how to change column name in sql comand code example
Example 1: sql rename column
EXEC SP_RENAME 'TABLE_NAME.OLD_COLUMN_NAME','NEW_COLUMN_NAME'
Example 2: modify column name in tsql
sp_rename 'table_name.old_column', 'new_name', 'COLUMN';
EXEC SP_RENAME 'TABLE_NAME.OLD_COLUMN_NAME','NEW_COLUMN_NAME'
sp_rename 'table_name.old_column', 'new_name', 'COLUMN';