ReplicationMonitor.EnumErrorRecords Method
Returns information on errors associated with a specified error ID that occurred during a synchronization session.
네임스페이스: Microsoft.SqlServer.Replication
어셈블리: Microsoft.SqlServer.Rmo (in microsoft.sqlserver.rmo.dll)
구문
‘선언
Public Function EnumErrorRecords ( _
distributionDatabase As String, _
errorId As Integer _
) As DataSet
public DataSet EnumErrorRecords (
string distributionDatabase,
int errorId
)
public:
DataSet^ EnumErrorRecords (
String^ distributionDatabase,
int errorId
)
public DataSet EnumErrorRecords (
String distributionDatabase,
int errorId
)
public function EnumErrorRecords (
distributionDatabase : String,
errorId : int
) : DataSet
매개 변수
- distributionDatabase
A String value that specifies the distribution database.
- errorId
반환 값
A DataSet object that contains the following columns.
Column |
Data type |
Description |
source_type_id |
Int32 |
Identifies the source of the error. |
source_name |
String |
The name of the error source. |
error_code |
String |
The error code. |
error_text |
String |
The message text for the error. |
(No column name) |
String |
Date and time that the error occurred. |
error_type_id |
Int32 |
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 |
Int32 |
The command ID of the first command in the failed execution batch. |
주의
Commit any property changes to the ReplicationMonitor 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.
스레드 보안
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
플랫폼
개발 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
대상 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
참고 항목
참조
ReplicationMonitor Class
ReplicationMonitor Members
Microsoft.SqlServer.Replication Namespace
관련 자료
How to: Programmatically Monitor Replication (RMO Programming)