Publication.FtpSubdirectory プロパティ

定義

ファイル転送プロトコル (FTP) を介してサブスクリプションを初期化できるパブリケーションの、FTP サーバー コンピューター上のサブディレクトリを取得します。値の設定も可能です。

public:
 property System::String ^ FtpSubdirectory { System::String ^ get(); void set(System::String ^ value); };
public string FtpSubdirectory { get; set; }
member this.FtpSubdirectory : string with get, set
Public Property FtpSubdirectory As String

プロパティ値

FTP サーバー上のサブディレクトリです。

注釈

マージ エージェントまたはディストリビューション エージェントは、このプロパティを使用して、FTP サーバー上のスナップショット ファイルを検索します。

<xref:Microsoft.SqlServer.Replication.Publication.FTPSubDirectory%2A> プロパティを取得できるのは、パブリッシャー側の固定サーバー ロール sysadmin のメンバー、パブリケーション データベースの固定データベース ロール db_owner のメンバー、またはパブリケーション アクセス リスト (PAL) のユーザーだけです。

<xref:Microsoft.SqlServer.Replication.Publication.FTPSubDirectory%2A> プロパティを設定できるのは、パブリッシャー側の固定サーバー ロール sysadmin のメンバー、またはパブリケーション データベースの固定データベース ロール db_owner のメンバーだけです。 既存のパブリケーションの <xref:Microsoft.SqlServer.Replication.Publication.FTPSubDirectory%2A> プロパティは、PAL のユーザーが設定できます。

プロパティの <xref:Microsoft.SqlServer.Replication.Publication.FTPSubDirectory%2A> 取得は、 sp_helppublication (Transact-SQL) または sp_helpmergepublication (Transact-SQL)実行と同じです。

プロパティの<xref:Microsoft.SqlServer.Replication.Publication.FTPSubDirectory%2A>設定は、sp_addpublication (Transact-SQL) と sp_changepublication (Transact-SQL) または sp_addmergepublication (Transact-SQL) と sp_changemergepublication (Transact-SQL) の実行と同じです。

適用対象