EnumInitialAccesses Method (SQL-DMO)

The EnumInitialAccesses method returns a QueryResults object enumerating Microsoft® SQL Server™ logins.

Applies To

ReplicationDatabase Object

Syntax

object.EnumInitialAccesses( ) as QueryResults

Part Description
object Expression that evaluates to an object in the Applies To list.

Returns

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

Column Data type Description
loginname nvarchar(129) Name of a SQL Server login
isntname integer When 1, the value of the loginname column identifies a Microsoft Windows NT® account
isntgroup integer When 1, the value of the loginname column identifies a Windows NT group account

Remarks

The result set enumerates those login records with access in every database at the Publisher.

Prototype (C/C++)

HRESULT EnumInitialAccesses(LPSQLDMOQUERYRESULTS *ppResults);

  


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