Freigeben über


EnumJobInfo Method

Diese Funktion wird in zukünftigen Versionen von Microsoft SQL Server nicht mehr bereitgestellt. Verwenden Sie diese Funktion beim Entwickeln neuer Anwendungen nicht, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird.

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.

Syntax

object
.EnumJobInfo(
)
as 
QueryResults

Parts

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

Prototype (C/C++)

HRESULT EnumJobInfo(
LPSQLDMOQUERYRESULTS* ppResults);

Returns

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.

Hinweise

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.