The EnumJobInfo method returns a QueryResults object enumerating execution state information for the SQL Server Agent job controlling a replication agent that enables a Subscriber-originated (pull) subscription.
MergePullSubscription Object | TransPullSubscription Object |
object.EnumJobInfo( ) as QueryResults
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
A QueryResults object containing one result set defined by these columns.
Column | Data type | Description |
---|---|---|
runstatus | integer | Agent status. Interpret by using SQLDMO_TASKSTATUS_TYPE. |
message | nvarchar(1025) | Descriptive text. |
date | integer | Date on which logging message was recorded formatted as described in Remarks. |
time | integer | Time at which logging message was recorded formatted as described in Remarks. |
The result set column date represents the message log date as a scaled long integer. The integer is built as a sum of the year scaled by 10000, the month scaled by 100, and the day. For example, the date April 19, 1997 is represented by the long integer value 19970419.
The result set column time represents message log time as a scaled long integer. The integer is built as a sum of the hour scaled by 10000, the minute scaled by 100, and the seconds. The value uses a 24-hour clock. For example, the time 1:03:09 P.M. is represented by the long integer value 130309.
HRESULT EnumJobInfo(
LPSQLDMOQUERYRESULTS* ppResults);