Returns information about the direct members of a role in the current database.
If the database contains nested roles, MemberName may be the name of a role. sp_helprolemember does not show membership obtained through nested roles. For example if User1 is a member of Role1, and Role1 is a member of Role2, EXEC sp_helprolemember 'Role2'; will return Role1, but not the members of Role1 (User1 in this example). To return nested memberships, you must execute sp_helprolemember repeatedly for each nested role.
When the SQL Server Management Studio role properties dialog box returns role membership, Management Studio includes nested role memberships.
Use sp_helpsrvrolemember to display the members of a fixed server role.
Use IS_ROLEMEMBER (Transact-SQL) to check role membership for a specified user.
The following example displays the members of the Sales role.
EXEC sp_helprolemember 'Sales'