rename columns in sql code example
Example 1: cmd to rename a collumn name in sql
ALTER TABLE table_name RENAME COLUMN old_name TO new_name;
Example 2: how to rename columns in sql server
EXEC sp_rename 'Sales.SalesTerritory.TerritoryID', 'TerrID', 'COLUMN';