SQL Flow Field Guide

DROP ROLE

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

removes a role

What changes

Input
catalog
Output or change
security catalog: role

Syntax at a glance

DROP ROLE [ IF EXISTS ] role_name

Work example

A database role is retired after members and permissions move.

List direct members, nested role membership, grants, ownership, and application dependencies.

Check your work No user or role depends on the removed role and required access exists through its replacement.

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