EnumErrorRecords 方法
Returns information about errors associated with a specified error ID that occurred during a synchronization session.
命名空間: Microsoft.SqlServer.Replication
組件: Microsoft.SqlServer.Rmo (在 Microsoft.SqlServer.Rmo.dll 中)
語法
'宣告
Public Function EnumErrorRecords ( _
errorId As Integer _
) As DataSet
'用途
Dim instance As PublicationMonitor
Dim errorId As Integer
Dim returnValue As DataSet
returnValue = instance.EnumErrorRecords(errorId)
public DataSet EnumErrorRecords(
int errorId
)
public:
DataSet^ EnumErrorRecords(
int errorId
)
member EnumErrorRecords :
errorId:int -> DataSet
public function EnumErrorRecords(
errorId : int
) : DataSet
參數
- errorId
型別:System. . :: . .Int32
An Int32 value specifying the ID value that uniquely identifies the error.
傳回值
型別:System.Data. . :: . .DataSet
A DataSet object that contains the following columns.
Column |
Data type |
Description |
---|---|---|
source_type_id |
Identifies the source of the error. |
|
source_name |
The name of the error source. |
|
error_code |
The error code. |
|
error_text |
The message text for the error. |
|
(No column name) |
Date and time that the error occurred. |
|
error_type_id |
Type of error that occurred. |
|
has_xact_seqno |
If the error has a corresponding transaction log sequence number. |
|
xact_seqno |
Byte[] |
The starting transaction log sequence number of the failed execution batch. |
command_id |
The command ID of the first command in the failed execution batch. |
備註
You should commit any property changes to the PublicationMonitor object before calling this method because properties of this object may need to be loaded if they have not been loaded already.
The EnumErrorRecords method can only be called by members of the db_owner or replmonitor fixed database roles on the distribution database.
This namespace, class, or member is supported only in version 2.0 of the .NET Framework.