Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

EnumJobInfo Method

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

The EnumJobInfo method returns a QueryResults object that enumerates execution state information for the Microsoft SQL Server Agent job controlling a replication agent that enables a Subscriber-originated (pull) subscription.


object
.EnumJobInfo(
)
as 
QueryResults

object

Expression that evaluates to an object in the Applies To list.

HRESULT EnumJobInfo(
LPSQLDMOQUERYRESULTS* ppResults);

A QueryResults object that contains one result set defined by these columns.

Column

Data type

Description

date

integer

Date on which logging message was recorded. Formatted as described in Remarks.

message

nvarchar(1025)

Descriptive text.

runstatus

integer

Agent status. Interpret using SQLDMO_TASKSTATUS_TYPE.

time

integer

Time at which logging message was recorded. Formatted as described in Remarks.

datetime

nvarchar(26)

Date and time at which logging message was recorded. Formatted as described in Remarks. Returned only for instances of SQL Server.

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.

In the result set, date and time data returned in datetimeis 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.

Community Additions

ADD
Show:
© 2015 Microsoft