IsNTGroupMember Method (SQL-DMO)

The IsNTGroupMember method exposes SQL Server installation access rights for Windows NT user accounts.

Applies To

SQLServer Object

Syntax

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.

Returns

True when the user identified is a member of the NT group. False otherwise.

Remarks

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.

Prototype (C/C++)

HRESULT IsNTGroupMember(SQLDMO_LPCSTR NTGroup,
SQLDMO_LPCSTR NTUser, LPBOOL pRetVal);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.