Publication.SnapshotGenerationAgentPublisherSecurity プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
スナップショット エージェントが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
プロパティ値
スナップショット エージェントがPublisherに接続するために使用するセキュリティコンテキストを表すIConnectionSecurityContextオブジェクトです。
注釈
返された IConnectionSecurityContext オブジェクトのプロパティを変更した後、Update を呼び出します。
SnapshotGenerationAgentPublisherSecurityプロパティは、Publisherのsysadmin固定サーバーロールのメンバーか、出版データベース上のdb_owner固定データベースの役割のメンバーのみが取得可能です。
返されるIConnectionSecurityContextオブジェクトのプロパティは、Publisherのsysadmin固定サーバーロールのメンバーか、出版データベース上のdb_owner固定データベースの役割のメンバーによってのみ設定可能です。
SnapshotGenerationAgentProcessSecurityプロパティの取得はsp_helppublication_snapshotを実行するのと同義です(Transact-SQL)。
返された IConnectionSecurityContext オブジェクトのプロパティを設定することは、 sp_addpublication_snapshot(Transact-SQL) または sp_changepublication_snapshot(Transact-SQL)を実行するのと同等です。
Important
可能であれば、実行時にセキュリティ認証情報の入力を促してください。 認証情報を保存する必要がある場合は、Windows .NETフレームワークが提供する暗号サービスを利用しましょう。