This topic has not yet been rated - Rate this topic

Publication.RevokePublicationAccess Method

Removes the specified login from the publication access list (PAL).

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)
public void RevokePublicationAccess(
	string loginName
)

Parameters

loginName
Type: System.String
A String value that specifies the login of a user in the PAL.
ExceptionCondition
ApplicationException

If the publication does not exist on the server.

ArgumentException

If the supplied String is null, too long, or invalid.

Only members of the sysadmin fixed server role at the Publisher or the db_owner fixed database role on the publication database can call RevokePublicationAccess.

Calling RevokePublicationAccess is equivalent to executing sp_revoke_publication_access (Transact-SQL).

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.