Back to all blogs3 min read
How to change schema name of a table in SQL Server?
Use below script to change schema name of a table in SQL Server.
Ankush Jain
Lead Software Engineer (VP) | Software Architect
Published Mar 26, 2018Updated Nov 24, 2026
Use below script to change schema name of a table in SQL Server.
Generalized Syntax:
ALTER SCHEMA NewSchema TRANSFER CurrentSchema.TableName;For example, if you want to change your dbo.Customers table to Config.Customers, then you can use below SQL command.
ALTER SCHEMA Config TRANSFER dbo.Customers;