Udostępnij za pośrednictwem


ReplicationDatabase.LogReaderAgentPublisherSecurity Property

Definition

Gets the login used by the Log Reader Agent to connect to the Publisher.

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

Property Value

An IProcessSecurityContext value that specifies the type of authentication and login used by the Log Reader Agent to connect to the Publisher.

Remarks

For security reasons, Password is always masked in the return value.

The LogReaderAgentPublisherSecurity property can be retrieved by members of the sysadmin fixed server role or by members of the db_owner fixed database role of the published database.

Retrieving the LogReaderAgentPublisherSecurity property is equivalent to executing sp_helplogreader_agent (Transact-SQL).

Applies to