sp_helprole [ [ @rolename = ] 'role' ]
@rolename = ] ' role '
Is the name of a role in the current database.
role is , with a default of NULL. sysname role must exist in the current database. If role is not specified, information about all roles in the current database is returned.
0 (success) or 1 (failure)
Name of the role in the current database.
RoleName is not an application role.
RoleName is an application role.
To view the permissions associated with the role, use
sp_helprotect. To view the members of a database role, use sp_helprolemember.
Requires membership in the
The following query returns all the roles in the current database.
Did you find this helpful?
( 1500 characters remaining)
Thank you for your feedback