SQL Flow Field Guide

DROP USER

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

removes a user

What changes

Input
catalog
Output or change
security catalog: user

Syntax at a glance

DROP USER [ IF EXISTS ] user_name

Work example

A database principal is retired after its access and owned objects are reassigned.

Check active sessions, schemas, grants, role membership, and application identity ownership.

Check your work No required object remains owned by the user and no application signs in through it.

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