SQL Flow Field Guide

DENY Endpoint Permissions

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

DENY permissions on endpoint

What changes

Input
principal and securable names
Output or change
permission metadata

Syntax at a glance

DENY permission [ ,...n ] ON ENDPOINT :: endpoint_name TO < server_principal > [ ,...n ] [ CASCADE ] [ AS SQL_Server_login ]

Work example

A login must be blocked from a permission on a network endpoint.

Check endpoint protocol, connected features, server roles, and peer requirements before changing access.

Check your work The test login is denied the selected endpoint operation and required peers still connect.

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