SQL Flow Field Guide

DROP SCHEMA

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

removes schema (no row flow)

What changes

Input
catalog
Output or change
catalog: schema

Syntax at a glance

DROP SCHEMA [ IF EXISTS ] schema_name

Work example

An empty schema is retired after its objects and permissions move.

List schema objects, ownership, grants, and name references before removal.

Check your work The schema contains no required object and no application resolves a name through it.

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