SQL Flow Field Guide

CREATE ROLE

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

defines a role

What changes

Input
catalog
Output or change
security catalog: role

Syntax at a glance

CREATE ROLE role_name [ AUTHORIZATION owner_name ]

Work example

A database team needs a named role for one repeatable job function.

List required permissions first, then assign a test principal and remove any broader inherited role.

Check your work The role grants the task permissions and does not grant database-wide control.

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