March 12, 2010     |
Network Toaster
SQL Security Forums
Note: SQLSecurity.com does not allow nor require registration due to privacy concerns for users. SQLSecurity.com is open and anonymous for all. Please report any abuse or profanity.
Subject: Roles for current user
Prev Next

Author Messages
Rob

09/26/2001 8:24 AM Quote Reply Alert 
I have NT groups and logins for these groups created in MS SQL (with Win NT authentication). For each login I have different roles. I need to know which role or group is set for CURRENT_USER. Application is ASP, but I don't know how to get NT group name for current user in ASP.
Chip Andrews

09/27/2001 9:22 AM Quote Reply Alert 
Check out the IS_MEMBER function. Syntax IS_MEMBER ( { 'group' | 'role' } ) Arguments 'group' Is the name of the Windows NT group being checked; must be in the format Domain\Group. group is sysname. 'role' Is the name of the SQL Server role being checked. role is sysname and can include the database fixed roles or user-defined roles but not server roles.

Forums > Discussions > SQL Server Security > Roles for current user

Quick Reply
Username:  
Subject:  
Body:
 



ActiveForums 3.6
Copyright 1999 by Chip Andrews   |  Privacy Statement  |  Terms Of Use