SQL Flow Field Guide

ALTER SERVER ROLE

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

changes a server role

What changes

Input
catalog
Output or change
security catalog: server role

Syntax at a glance

ALTER SERVER ROLE server_role_name { [ ADD MEMBER server_principal ] | [ DROP MEMBER server_principal ] | [ WITH NAME = new_server_role_name ] } [ ; ]

Work example

A custom server role needs a reviewed permission or membership change.

Inspect direct and nested members and test the effective server permissions with a non-admin account.

Check your work The test account can perform its assigned operation and no broader server access remains.

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