Export (0) Print
Expand All
Expand Minimize


SQL Server 2000

Returns the permissions applied to a fixed server role.


sp_srvrolepermission [[@srvrolename =] 'role']


[@srvrolename =] 'role'

Is the name of the fixed server role for which permissions are returned. role is sysname, with a default of NULL. If not specified, the permissions for all fixed server roles are returned. role can be one of these values.

Value Description
Sysadmin System administrators
Securityadmin Security administrators
Serveradmin Server administrators
Setupadmin Setup administrators
Processadmin Process administrators
Diskadmin Disk administrators
Dbcreator Database creators
Bulkadmin Can execute BULK INSERT statements

Return Code Values

0 (success) or 1 (failure)

Result Sets
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 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'

See Also




System Stored Procedures

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft