Engineering scalable systems, cloud-native applications, and AI-powered solutions.

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

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:

sql
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.

sql
ALTER SCHEMA Config TRANSFER dbo.Customers;

Have feedback or thoughts?

Discuss this article or share it on Twitter / GitHub.