SQL Flow Field Guide

REVOKE

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

REVOKE permissions

What changes

Input
principal and securable names
Output or change
permission metadata

Syntax at a glance

REVOKE [ GRANT OPTION FOR ] { [ ALL [ PRIVILEGES ] ] | permission [ ( column [ ,...n ] ) ] [ ,...n ] } [ ON [ class :: ] securable ] { TO | FROM } principal [ ,...n ] [ CASCADE] [ AS principal ]

Work example

A direct permission grant or denial must be removed from a principal.

Inspect direct grants and inherited roles so the review does not confuse revocation with inherited access.

Check your work The direct permission row is removed and the test principal's effective access matches the intended design.

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