change column name sql
snippet in sql

change column names mssql

user3384

--The following example renames the column TerritoryID in the table Sales.SalesTerritory to TerrID in the AdventureWorks database.

EXEC sp_rename 'Sales.SalesTerritory.TerritoryID', 'TerrID', 'COLUMN';

alter column name in sql

user5139

ALTER TABLE table_name RENAME COLUMN old_name TO new_name;

sql server alter column

user6994

ALTER TABLE table_name 
ALTER COLUMN column_name new_data_type(size);

sql rename column

user6845

EXEC SP_RENAME 'TABLE_NAME.OLD_COLUMN_NAME','NEW_COLUMN_NAME'

change column name sql

user7552

ALTER TABLE `db_name`.`table_name` 
	CHANGE `current_column_name` `new_column_name` datatype(size) NOT NULL COMMENT '';

change column name sql

user4353

ALTER TABLE users
 ALTER COLUMN first username varchar(20);