Publication.SnapshotGenerationAgentPublisherSecurity Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the security context used by the Snapshot Agent to connect to the Publisher.
public:
property Microsoft::SqlServer::Replication::IConnectionSecurityContext ^ SnapshotGenerationAgentPublisherSecurity { Microsoft::SqlServer::Replication::IConnectionSecurityContext ^ get(); };
public Microsoft.SqlServer.Replication.IConnectionSecurityContext SnapshotGenerationAgentPublisherSecurity { get; }
member this.SnapshotGenerationAgentPublisherSecurity : Microsoft.SqlServer.Replication.IConnectionSecurityContext
Public ReadOnly Property SnapshotGenerationAgentPublisherSecurity As IConnectionSecurityContext
Property Value
An IConnectionSecurityContext object that represents the security context used by the Snapshot Agent to connect to the Publisher.
Remarks
Call Update after changing the properties on the returned IConnectionSecurityContext object.
The SnapshotGenerationAgentPublisherSecurity property can only be retrieved by members of the sysadmin
fixed server role at the Publisher or by members of the db_owner
fixed database role on the publication database.
Properties of the returned IConnectionSecurityContext object can only be set by members of the sysadmin
fixed server role at the Publisher or by members of the db_owner
fixed database role on the publication database.
Retrieving the SnapshotGenerationAgentProcessSecurity property is equivalent to executing sp_helppublication_snapshot (Transact-SQL).
Setting properties of the returned IConnectionSecurityContext object is equivalent to executing sp_addpublication_snapshot (Transact-SQL) or sp_changepublication_snapshot (Transact-SQL).
Important
When possible, prompt users to enter security credentials at run time. If you must store credentials, use the cryptographic services provided by the Windows .NET Framework.