語言

Publication.PostSnapshotScript 屬性

定義

取得或設定初始快照套用後執行的 Transact-SQL 腳本檔案名稱及完整路徑。

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

屬性值

一個 String 值。

備註

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

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

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

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

適用於