EnumNTGroups Method (SQL-DMO)

The EnumNTGroups method returns a QueryResults object enumerating the Microsoft® Windows NT® group accounts with permissions in the referenced database.

Applies To

Database Object

Syntax

object.EnumNTGroups( [ GroupName ] ) as QueryResults

Part Description
object Expression that evaluates to an object in the Applies To list
GroupName Optionally restricts output to only the Windows NT group account specified

Returns

A QueryResults object containing one result set defined by these columns.

Column Data type Description
NTGroupName nvarchar(129) Name of the Windows NT group account
NtGroupId smallint Group identifier
SID varbinary(91) Security identifier
HasDbAccess integer When 1, the group has permission to access the database

Prototype (C/C++)

HRESULT EnumNTGroups(
LPSQLDMOQUERYRESULTS* ppResults,
LPCOLESTR GroupName = NULL);

  


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