Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

sp_helprolemember (Transact-SQL)

Returns information about the members of a role in the current database.

Topic link iconTransact-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)

Column name

Data type




Name of the role in the current database.



Name of a member of DbRole.



Security identifier of MemberName.

If the database contains nested roles, MemberName may be the name of a role.

Use sp_helpsrvrolemember to display the members of a fixed server role.

Requires membership in the public role.

The following example displays the members of the Sales role.

EXEC sp_helprolemember 'Sales'
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft