The EnumNTGroups method returns a QueryResults object enumerating the Microsoft® Windows NT® group accounts with permissions in the referenced database.
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 |
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 |
HRESULT EnumNTGroups(
LPSQLDMOQUERYRESULTS* ppResults,
LPCOLESTR GroupName = NULL);