The IsNTGroupMember method exposes SQL Server installation access rights for Windows NT user accounts.
object.IsNTGroupMember( NTGroup , NTUser ) as Boolean
Part | Description |
---|---|
object | An expression that evaluates to an object in the Applies To list. |
NTGroup | A string naming an NT group account granted login access to the SQL Server installation. |
NTUser | A string naming an NT user account. |
True when the user identified is a member of the NT group. False otherwise.
Use the IsNTGroupMember method to discover access rights for a Windows NT user when login access is granted to Windows NT group accounts.
When a Windows NT security account is granted or denied access to a SQL Server installation, an entry exists in syslogins. The SQL-DMO Logins collection will expose a member referencing the security account. When a syslogins record, or Login object, references a Windows NT group account, individual records and objects are not created referencing group members.
HRESULT IsNTGroupMember(SQLDMO_LPCSTR NTGroup,
SQLDMO_LPCSTR NTUser, LPBOOL pRetVal);