EnumLogReaderAgentSessionDetails Method
Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.
The EnumLogReaderAgentSessionDetails method returns a QueryResults object that enumerates detail information for a specified Log Reader Agent session.
구문
object
.EnumLogReaderAgentSessionDetails(
AgentName
,
SessionID
)
as
QueryResults
Parts
object
Expression that evaluates to an object in the Applies To list.AgentName
String that identifies a Log Reader Agent session by name.SessionID
String that identifies a session. The SessionID value is specified using the first 21 characters of the time column value in the QueryResults result set returned by the EnumLogReaderAgentSessions method.
Prototype (C/C++)
HRESULT EnumLogReaderAgentSessionDetails(
SQLDMO_LPCSTR AgentName,
SQLDMO_LPCSTR SessionID,
LPSQLDMOQUERYRESULTS* ppResults);
Returns
A QueryResults object that contains one result set defined by these columns.
Column |
Data type |
Description |
---|---|---|
runstatus |
integer |
Executing state. Interpret using SQLDMO_TASKSTATUS_TYPE. |
time |
nvarchar(26) |
Date and time of message logging. |
comments |
nvarchar(256) |
Descriptive text. |
duration |
integer |
Elapsed time of the session. |
delivery_rate |
float |
Average number of commands delivered per second. |
delivery_latency |
integer |
Latency, in milliseconds, between the transaction entering the distribution database and being applied to the Subscriber. |
delivery_time |
integer |
Cumulative time measurement for delivery in seconds. |
delivered_/transactions |
integer |
Cumulative number of transactions delivered in the session. |
delivered_/commands |
integer |
Cumulative number of commands delivered in the session. |
average_/commands |
integer |
Average number of commands per transaction delivered in the session. |
error_id |
integer |
When nonzero, Microsoft SQL Server error message number. |
주의
In the result set, date and time data returned in time is formatted as YYYYMMDD hh:mm:ss.fff.
Date part |
Description |
---|---|
YYYY |
Represents the year in four digits. |
MM |
Represents the month in two digits (zero padded). |
DD |
Represents the day of the month in two digits (zero padded). |
hh |
Represents the hour using two digits, a twenty-four hour clock (zero padded). |
mm |
Represents the minute in two digits (zero padded). |
ss |
Represents the second in two digits (zero padded). |
fff |
Represents the fractional part of the second in three digits. |
For example, the value 20040512 18:12:00.000 is interpreted as 6:12 P.M., May 12, 2004.