EnumNTDomainGroups Method (SQL-DMO)

The EnumNTDomainGroups method returns a QueryResults object enumerating the Microsoft® Windows NT® group accounts defined on a domain.

Applies To

SQLServer Object

Syntax

object.EnumNTDomainGroups( [ Domain ] ) as QueryResults

Part Description
object Expression that evaluates to an object in the Applies To list
Domain String naming an existing Windows NT domain and directing output to include groups defined on that domain

Returns

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

Column Data type Description
group nchar(256) Name of a Windows NT group account
comment nchar(256) Text describing the group account

Remarks

When not directed to a user-specified domain, the QueryResults object returned lists Windows NT groups defined locally (defined explicitly on the server running Microsoft SQL Server™).

Prototype (C/C++)

HRESULT EnumNTDomainGroups(
LPSQLDMOQUERYRESULTS* ppResults,
SQLDMO_LPCSTR Domain = NULL);

  


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