SQL Flow Field Guide

CREATE SERVER ROLE

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

defines a server role

What changes

Input
catalog
Output or change
security catalog: server role

Syntax at a glance

CREATE SERVER ROLE role_name [ AUTHORIZATION server_principal ]

Work example

An operations team needs a custom server role with a narrow job scope.

List server permissions and membership separately, then test the role with a non-admin principal.

Check your work The test principal can perform its assigned server task and cannot change unrelated instance settings.

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