JobSchedule.ActiveEndDate Property


Gets or sets the date and time when the schedule ends.

Namespace:   Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public DateTime ActiveEndDate { get; set; }

Property Value

Type: System.DateTime

A DateTime value that specifies the date and time when the job schedule ends.

Scheduled SQL Server Agent jobs can have start and end dates. A job is run only between the start date and time and the end date and time. Alter the ActiveEndDate property to set the date when the schedule is no longer in effect.

If the ActiveEndDate property has not been set, the DateTime.MinValue is returned.

Return to top