The document is archived and information here might be outdated
Returns information about the members of a role in the current database.
Transact-SQL Syntax Conventions
sp_helprolemember [ [ @rolename = ] 'role' ]
[ @rolename = ] ' role '
Is the name of a role in the current database.
role is sysname, with a default of NULL. role must exist in the current database. If role is not specified, then all roles that contain at least one member from the current database are returned.
0 (success) or 1 (failure)
Name of the role in the current database.
Name of a member of
Security identifier of
If the database contains nested roles,
MemberName may be the name of a role.
sp_helpsrvrolemember to display the members of a fixed server role.
Requires membership in the
The following example displays the members of the
EXEC sp_helprolemember 'Sales'