Publication.AltSnapshotFolder 屬性

定義

取得或設定出版物的替代快照檔案位置。

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

屬性值

一個 String 指定用於快照檔案建立的替代位置的值。

備註

快照集代理程式 必須對你指定的目錄擁有寫入權限,而 散發代理程式 或 合併代理程式 也必須有讀取權限。 若使用拉取訂閱,必須指定共享目錄為通用命名慣例(UNC)路徑,例如 \\computername\snapshot。 如需詳細資訊,請參閱保護快照集資料夾

AltSnapshotFolder該屬性僅能由 Publisher 固定伺服器角色的成員sysadmin、出版資料庫中固定資料庫角色的成員db_owner,或出版存取清單(PAL)中的使用者取得。

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

取回 AltSnapshotFolder 該財產等同於執行 sp_helppublication(Transact-SQL)sp_helpmergepublication(Transact-SQL)

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

適用於