PublisherMonitor.EnumErrorRecords(Int32) Method


返回与同步会话过程中出现的指定错误 ID 相关联的错误有关的信息。Returns information on errors associated with a specified error ID that occurred during a synchronization session.

 System::Data::DataSet ^ EnumErrorRecords(int errorId);
public System.Data.DataSet EnumErrorRecords (int errorId);
member this.EnumErrorRecords : int -> System.Data.DataSet
Public Function EnumErrorRecords (errorId As Integer) As DataSet



一个 Int32 值,该值指定唯一标识错误的 ID 值。An Int32 value that specifies the ID value that uniquely identifies the error.



一个包含以下列的 DataSet 对象。A DataSet object that contains the following columns.

Column 数据类型Data type 说明Description
source_type_idsource_type_id Int32 标识错误的源。Identifies the source of the error.
source_namesource_name String 错误源名称。The name of the error source.
error_codeerror_code String 错误代码。The error code.
error_texterror_text String 错误的消息文本。The message text for the error.
(No column name)(No column name) String 发生错误的日期和时间。Date and time that the error occurred.
error_type_iderror_type_id Int32 发生的错误的类型。Type of error that occurred.
has_xact_seqnohas_xact_seqno Boolean 错误是否具有相应的事务日志序列号。If the error has a corresponding transaction log sequence number.
xact_seqnoxact_seqno Byte **[]** Byte **[]** 执行失败的批次的起始事务日志序列号。The starting transaction log sequence number of the failed execution batch.
command_idcommand_id Int32 执行失败的批次中的第一个命令的命令 ID。The command ID of the first command in the failed execution batch.


PublisherMonitor在调用此方法之前,请提交对对象的任何属性更改,因为如果尚未加载此对象的属性,则该对象的属性可能需要加载。Commit any property changes to the PublisherMonitor object before calling this method, because properties of this object may need to be loaded if they have not been loaded already.

EnumErrorRecords只有 db_owner replmonitor 分发数据库上的或固定数据库角色的成员才能调用此方法。The EnumErrorRecords method can only be called by members of the db_owner or replmonitor fixed database roles on the distribution database.

Applies to

See also