Sql rename column

This article is tagged with: Sql rename column and mysql

sql rename column

EXEC SP_RENAME 'TABLE_NAME.OLD_COLUMN_NAME','NEW_COLUMN_NAME'

cmd to rename a collumn name in sql

ALTER TABLE table_name RENAME COLUMN old_name TO new_name;

alter column name in sql

ALTER TABLE table_name RENAME COLUMN old_name TO new_name;

how to rename a column name in sql

ALTER TABLE Student RENAME COLUMN NAME TO FIRST_NAME;

modify column name in tsql

sp_rename 'table_name.old_column', 'new_name', 'COLUMN';

how to rename columns in sql server

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

This article is tagged with: Sql rename column and mysql