alter column name in sql server code example
Example 1: sql add column
ALTER TABLE Customers
ADD Email varchar(255);
Example 2: sql rename column
EXEC SP_RENAME 'TABLE_NAME.OLD_COLUMN_NAME','NEW_COLUMN_NAME'
Example 3: alter table add column
ALTER TABLE table
ADD COLUMN column VARCHAR (255) NOT NULL AFTER column;
Example 4: how to change the column name in sql
ALTER TABLE table_name
CHANGE COLUMN old_name TO new_name;
Example 5: alter table name sql
EXEC sp_rename 'TableOldName', 'TableNewName';
Example 6: modify column name in sql
ALTER TABLE `Table Name` MODIFY COLUMN `Column Name` Datatype(Size);