microsoft:microsoft_sql_server:sql:columns:rename_column
Microsoft - Microsoft SQL Server - SQL - Columns - Rename Column
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';
microsoft/microsoft_sql_server/sql/columns/rename_column.txt · Last modified: 2021/08/05 10:38 by peter