Publication.FtpPassword 屬性

定義

設定用於連接檔案傳輸協定(FTP)伺服器的登入密碼,適用於允許透過 FTP 初始化訂閱的出版品。

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

屬性值

一個 String 指定連接 FTP 伺服器電腦所用密碼的值。

備註

FtpPassword 屬性總是回傳空字串。

FtpPassword該屬性只能由 Publisher 固定伺服器角色的成員sysadmin或發佈資料庫中固定資料庫角色的成員db_owner設定。 出版存取清單(PAL)中的使用者可以設定 FtpPassword 現有出版品的屬性。

設定屬性 FtpPassword 等同於執行 sp_addpublication(Transact-SQL)sp_changepublication(Transact-SQL)sp_addmergepublication(Transact-SQL)sp_changemergepublication(Transact-SQL)

適用於