Compartir a través de


RevokePublicationAccess Method

Esta característica se quitará en una versión futura de Microsoft SQL Server. Evite utilizar esta característica en nuevos trabajos de desarrollo y tenga previsto modificar las aplicaciones que actualmente la utilizan.

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

Sintaxis

object
.RevokePublicationAccess(
szLoginName
)

Parts

  • object
    Expression that evaluates to an object in the Applies To list.
  • szLoginName
    String that names a Microsoft SQL Server login existing on the Publisher.

Prototype (C/C++)

HRESULT RevokePublicationAccess(SQLDMO_LPCSTR szLoginName);

Notas

Revoking permission from a login by using the RevokePublicationAccess method of the MergePublication or TransPublication object requires appropriate permission. 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.

Applies To:

MergePublication Object

TransPublication Object