SQL Flow Field Guide

ALTER SCHEMA

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

changes schema (no row flow)

What changes

Input
catalog
Output or change
catalog: schema

Syntax at a glance

ALTER SCHEMA schema_name TRANSFER [ <entity_type> :: ] securable_name [;]

Work example

A database object must move to a new schema namespace.

List dependencies and grants, then test name resolution for every caller after the move.

Check your work The object resolves under its new schema and existing callers retain only intended access.

Open Microsoft Learn for full syntax, permissions, and details for your version.