log_shipping_monitor_error_detail (Transact-SQL)

適用於:SQL Server

儲存記錄傳送作業的錯誤詳細資料。 此資料表會儲存在 msdb 資料庫中。

與記錄和監視相關的資料表也會用於主伺服器和次要伺服器。

資料行名稱 資料類型 描述
agent_id uniqueidentifier 備份的主要識別碼,或複製或還原的次要識別碼。
agent_type tinyint 記錄傳送作業的類型。

0 = 備份。

1 = 複製。

2 = 還原。
session_id int 備份/複製/還原/作業的會話識別碼。
database_name sysname 與此錯誤記錄相關聯的資料庫名稱。 用於備份的主資料庫、用於還原的次要資料庫,或複製的空白資料庫。
sequence_number int 累加數位,指出跨越多個記錄之錯誤的正確資訊順序。
log_time datetime 建立記錄的日期和時間。
log_time_utc datetime 建立記錄的日期和時間,以國際標準時程表示。
message nvarchar 訊息文字。
source nvarchar 錯誤訊息或事件的來源。
help_url nvarchar 如果有的話,可以找到錯誤的詳細資訊 URL。

備註

下表包含記錄傳送代理程式的錯誤詳細資料。 每個錯誤都會記錄為一連串的例外狀況。 每個代理程式會話可能會有多個錯誤(順序)。

除了儲存在遠端監視器伺服器上之外,主伺服器的相關資訊也會儲存在其log_shipping_monitor_error_detail 資料表的主伺服器上 ,而與次要伺服器相關的資訊也會儲存在其log_shipping_monitor_error_detail 資料表的 次要伺服器上。

若要識別代理程式會話,請使用 資料行agent_id agent_type session_id 。 依 log_time 排序,以查看錯誤記錄的順序。

另請參閱

關於記錄傳送 (SQL Server)
log_shipping_monitor_history_detail (Transact-SQL)
sp_cleanup_log_shipping_history (Transact-SQL)
sp_delete_log_shipping_primary_database (Transact-SQL)
sp_delete_log_shipping_secondary_database (Transact-SQL)
sp_refresh_log_shipping_monitor (Transact-SQL)
系統資料表 (Transact-SQL)