Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

See if a user is a member of a group?

Status
Not open for further replies.

Kumba1

Technical User
Aug 29, 2002
94
I want to set-up groups for my Database, and let certain login's be members of certain groups based upon what I want to allow them to do... My problem is this...

How do I check to see if the login is a member of a certain group on SQL? I'm using SQL Login, not NT Domain Auth BTW as well. Thanks....
 
Try.

Select name
from dbo.sysusers
where (uid=
(select gid
from dbo.sysusers
where name=suser_sname()))

:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top