Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Need to know user of a role

Author  Topic 

melkor
Starting Member

2 Posts

Posted - 2005-10-25 : 12:30:23
Is need to know is a user is member of a role. Is there any fuction that does that or is there any way to do it??
thanks

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2005-10-25 : 13:06:16
check out Books Online for "system stored procedures" | security. There are a bunch of them including: sp_helprolemember

Be One with the Optimizer
TG
Go to Top of Page

activecrypt
Posting Yak Master

165 Posts

Posted - 2005-10-26 : 00:57:02
Hi,

SELECT *
FROM sysmembers membs
JOIN sysusers users on membs.memberuid = users.uid
JOIN sysusers groups on membs.groupuid = groups.uid
WHERE
users.name = 'dbo'

-----------------------------------------------------------
MSSQL Server encryption software http://www.activecrypt.com
Go to Top of Page

melkor
Starting Member

2 Posts

Posted - 2005-10-26 : 15:56:05
Thank you people, found an SP sp_helprole
Go to Top of Page
   

- Advertisement -