ALTER ROLE
changes a role
What changes
- Input
- catalog
- Output or change
- security catalog: role
Syntax at a glance
ALTER ROLE role_name { ADD MEMBER database_principal | DROP MEMBER database_principal | WITH NAME = new_name } [;]
Work example
A database role needs a reviewed permission or membership update.
List direct and nested members, then test effective access with a representative principal.
Check your work The principal gains only the requested task and loses permissions removed from the role.
Open Microsoft Learn for full syntax, permissions, and details for your version.