SQL Flow Field Guide

DENY Server Principal Permissions

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

DENY permissions on server principal

What changes

Input
principal and securable names
Output or change
permission metadata

Syntax at a glance

DENY permission [ ,...n ] } ON { [ LOGIN :: SQL_Server_login ] | [ SERVER ROLE :: server_role ] } TO <server_principal> [ ,...n ] [ CASCADE ] [ AS SQL_Server_login ]

Work example

A login must be blocked from changing a server login or role.

Review principal ownership, server role membership, and identity administration duties.

Check your work The test login cannot alter the named server principal.

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