CREATE APPLICATION ROLE
defines a application role
What changes
- Input
- catalog
- Output or change
- security catalog: application role
Syntax at a glance
CREATE APPLICATION ROLE application_role_name WITH PASSWORD = 'password' [ , DEFAULT_SCHEMA = schema_name ]
Work example
An application needs a database role with a narrow set of permissions.
Review how the application activates the role and where its password is stored before approving a change.
Check your work The role can reach only the database objects required by that application path.
Open Microsoft Learn for full syntax, permissions, and details for your version.