By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,419 Members | 1,636 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,419 IT Pros & Developers. It's quick & easy.

is there a quick way to get a list of roles a user is a member of?

P: n/a
What I'm looking for is a list of roles a particular user is a member
of.

the closest I've found so far is sp_helprolemember without any
arguements. but this gives me all the roles and all the users. I want
this same list filtered on a specific user.
something like sp_??? 'user'

Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi

Maybe:

CREATE TABLE #UserRoles (
DbRole sysname,
MemberName sysname,
MemberSID varbinary(85) )

INSERT INTO #UserRoles (
DbRole ,
MemberName ,
MemberSID )
EXEC sp_helprolemember

SELECT * FROM #UserRoles WHERE MemberName = 'dbo'

John

"IndianaJonesWB" <jr***@lcra.org> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
What I'm looking for is a list of roles a particular user is a member
of.

the closest I've found so far is sp_helprolemember without any
arguements. but this gives me all the roles and all the users. I want
this same list filtered on a specific user.
something like sp_??? 'user'

Jul 23 '05 #2

P: n/a
Perfectamundo! Thanks

Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.