Returns the permissions applied to a fixed server role.
sp_srvrolepermission [[@srvrolename =] 'role']
Value | Description |
---|---|
sysadmin | System administrators |
securityadmin | Security administrators |
serveradmin | Server administrators |
setupadmin | Setup administrators |
processadmin | Process administrators |
diskadmin | Disk administrators |
dbcreator | Database creators |
0 (success) or 1 (failure)
Column name | Data type | Description |
---|---|---|
ServerRole | sysname | Name of a fixed server role |
Permission | sysname | Permission associated with ServerRole |
The permissions applied to members of fixed server roles are managed internally and are not part of the security system used to manage the permissions for the other types of security accounts.
The permissions listed include the Transact-SQL statements that can be executed, as well as other special activities that can be performed by members of the fixed server role. To display a list of the fixed server roles, execute sp_helpsrvrole.
The sysadmin fixed server role has the permissions of all the other fixed server roles.
Execute permissions default to the public role.
This example displays the permissions associated with the sysadmin fixed server role.
EXEC sp_srvrolepermission 'sysadmin'
sp_addsrvrolemember | sp_helpsrvrole |
sp_dropsrvrolemember | System Stored Procedures |