EnumPublicationAccesses Method (SQL-DMO)

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

Applies To
MergePublication Object TransPublication Object

Syntax

object.EnumPublicationAccesses( [ bReturnGranted ] ) as QueryResults

Part Description
object Expression that evaluates to an object in the Applies To list
bReturnGranted True or False

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

When bReturnGranted is True, the result set enumerates those login records in the publication access list.

When bReturnGranted is False (default), the result set enumerates login records not in the publication access list.

Prototype (C/C++)

HRESULT EnumPublicationAccesses(
LPSQLDMOQUERYRESULTS* ppResults,
BOOL bReturnGranted = TRUE);

See Also
GrantPublicationAccess Method RevokePublicationAccess Method
Publication Access Lists  

  


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