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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Current users Group membership

Status
Not open for further replies.

Coppermill

Programmer
Oct 5, 2004
21
GB
How can I find out from within my Store Proc what Groups my current user is a member of?
 
of any use ?

Code:
SELECT  CURRENT_USER

[bandito] [blue]DBomrrsm[/blue] [bandito]
 
That is a start, I've also found SUSER_SNAME

But the problem is when you use a Trusted connection a user can belong to many Groups, so I need to find a way of getting at al the groups / role the user belongs to.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top