sql server alter table rename column syntax code example
Example 1: rename table sql
ALTER TABLE STUDENTS
RENAME TO ARTISTS;
Example 2: sql alter column name sql server
EXEC sp_RENAME 'table_name.oldColumn_name' , 'newColumn_name', 'COLUMN'
ALTER TABLE STUDENTS
RENAME TO ARTISTS;
EXEC sp_RENAME 'table_name.oldColumn_name' , 'newColumn_name', 'COLUMN'