Поделиться через


Свойство JobStep.LastRunDuration

Gets the time that the referenced job step took to run when it was last executed.

Пространство имен:  Microsoft.SqlServer.Management.Smo.Agent
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property LastRunDuration As Integer 
    Get
'Применение
Dim instance As JobStep 
Dim value As Integer 

value = instance.LastRunDuration
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public int LastRunDuration { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property int LastRunDuration {
    int get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member LastRunDuration : int
function get LastRunDuration () : int

Значение свойства

Тип: System.Int32
The amount of time for the last job to complete, formatted as hhmmss (hours, minutes, seconds).

Примеры

Планирование автоматических административных задач в агенте SQL Server

См. также

Справочник

JobStep Класс

Пространство имен Microsoft.SqlServer.Management.Smo.Agent

Другие ресурсы

Задачи автоматизированного администрирования (агент SQL Server)

sp_help_jobstep (Transact-SQL)