ReplicationMonitor.EnumDistributionAgents 方法

定義

回傳受監控分銷商的 散發代理程式 工作資訊。

public:
 System::Data::DataSet ^ EnumDistributionAgents();
public System.Data.DataSet EnumDistributionAgents();
member this.EnumDistributionAgents : unit -> System.Data.DataSet
Public Function EnumDistributionAgents () As DataSet

傳回

一個 DataSet 包含以下欄位的物件。

柱狀 資料型別 描述
db_name String 散發資料庫的名稱。
名稱 String 複製代理工作的名稱。
現況 Int32 現況:

1 = 起跑

2 = 成功

3 = 進行中

4 = 閒置

5 = 重試

6 = 失敗

出版人 String 發行者名稱。
publisher_db String 發行集資料庫的名稱。
出版 String 出版名稱。
訂閱者 String 訂閱者姓名。
subscriber_db String 訂閱資料庫的名稱。
subscription_type Int32 訂閱類型:

0 = 推

1 = 拉

2 = 匿名

start_time String 最後一次特工處決的日期和時間。
時間 String 記錄會話的日期和時間。
持續時間 Int32 會談時間,以秒數計。
留言 String 訊息文字由客服記錄下來。
delivery_time Int32 第一筆交易交付的時間。
delivered_transactions Int32 該會話中交付的交易總數。
delivered_commands Int32 該會話中交付的指令總數。
average_commands Int32 每筆交易在會話中交付的平均指令數。
delivery_rate Single 每秒平均傳遞指令數。
delivery_latency Int32 從交易進入分發資料庫到應用於訂閱者之間的延遲(以毫秒計)。
error_id Int32 錯誤的 ID,顯示在 [MSrepl_errors (Transact-SQL)](http://msdn.microsoft.com/library/c6e023c1-2c32-4269-8d76-e442ea309e4b) 系統資料表中。 使用此 EnumErrorRecords(Int32) 方法可回傳錯誤的詳細資訊。
job_id Byte **[16]** 啟動複寫代理的 SQL Server Agent 工作識別碼。
local_job Booleantrue,代理職位在經銷商有空缺時。
profile_id Int32 個人資料識別碼。
agent_id Int32 代理人工作識別碼。
local_timestamp Byte **[8]** 最近一次特工運行的時間戳。
offload_enabled Booleantrue,則該訂閱支援遠端代理啟用。
offload_server Boolean 遠端代理啟用時所使用的伺服器名稱。
subscriber_type Byte 訂閱者的資料來源類型:

0 = SQL Server 訂閱者。

1 = 開放資料庫連接性(ODBC)資料來源。

備註

EnumDistributionAgents此方法僅能由分發器中或固定資料庫角色的成員db_ownerreplmonitor呼叫。

適用於

另請參閱