共用方式為


MergeSubscription.PublisherSecurity Property

Definition

Gets the security context used by the Merge Agent to connect to the Publisher.

public:
 property Microsoft::SqlServer::Replication::IConnectionSecurityContext ^ PublisherSecurity { Microsoft::SqlServer::Replication::IConnectionSecurityContext ^ get(); };
public Microsoft.SqlServer.Replication.IConnectionSecurityContext PublisherSecurity { get; }
member this.PublisherSecurity : Microsoft.SqlServer.Replication.IConnectionSecurityContext
Public ReadOnly Property PublisherSecurity As IConnectionSecurityContext

Property Value

An IConnectionSecurityContext object.

Remarks

When possible, use Windows Authentication.

The Description property can only be retrieved by members of the sysadmin fixed server role at the Publisher, members of the db_owner fixed database role on the publication database, or members of the publication access list for the publication to which the subscription belongs.

Retrieving Description is equivalent to executing sp_helpmergesubscription.

Applies to