RevokePublicationAccess Method (SQL-DMO)

The RevokePublicationAccess method removes the specified login from the publication access list.

Applies To
MergePublication Object TransPublication Object

Syntax

object.RevokePublicationAccess( szLoginName )

Part Description
object Expression that evaluates to an object in the Applies To list
szLoginName String naming a Microsoft® SQL Server™ login existing on the Publisher.

Remarks

Revoking privilege from a login by using the RevokePublicationAccess method of the MergePublication or TransPublication object requires appropriate privilege. The SQL Server login used for SQLServer object connection must be a member of the system-defined role db_owner in the database published, or a member of a role with greater privilege.

Prototype (C/C++)

HRESULT RevokePublicationAccess(SQLDMO_LPCSTR szLoginName);

  


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