Answers for "how to rename a table in sql server"

SQL
11

rename table sql

ALTER TABLE STUDENTS  
RENAME TO ARTISTS;
Posted by: Guest on June-04-2020
2

rename table sql server

USE AdventureWorks2012;   
GO  
EXEC sp_rename 'Sales.SalesTerritory', 'SalesTerr';
Posted by: Guest on September-22-2020
0

how to rename columns in sql server

EXEC sp_rename 'Sales.SalesTerritory.TerritoryID', 'TerrID', 'COLUMN';
Posted by: Guest on November-02-2020
-1

how to rename column name in sql server using query

EXEC sp_RENAME 'TableName.OldColumnName' , 'NewColumnName', 'COLUMN'
Posted by: Guest on July-01-2021

Code answers related to "how to rename a table in sql server"

Code answers related to "SQL"

Browse Popular Code Answers by Language