語言

Subscription.SynchronizationAgentName 屬性

定義

取得或設定已建立的代理工作名稱以同步訂閱。

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

屬性值

用來同步訂閱的代理名稱。

備註

SynchronizationAgentName屬性在 Microsoft SQL Server 2005 上是讀寫屬性。 這是 Microsoft SQL Server 2000 的現成屬性。

SynchronizationAgentName 必須在伺服器建立訂閱前設定。 一旦訂閱註冊存在於伺服器上,該 SynchronizationAgentName 屬性就無法更改。

SynchronizationAgentName該屬性僅能由Publisher的系統管理員固定伺服器角色成員、發佈資料庫中db_owner固定資料庫角色的成員,或是建立訂閱的使用者取得。

SynchronizationAgentName此屬性僅能由Publisher的系統管理員固定伺服器角色成員,或由發佈資料庫中db_owner固定資料庫角色的成員設定。

取回 SynchronizationAgentName 財產等同於執行 sp_helpsubscriptionsp_helpmergesubscription

設定屬性 SynchronizationAgentName 等同於執行 sp_addpushsubscription_agentsp_addmergepushsubscription_agent

適用於