JobServer.PurgeJobHistory Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
PurgeJobHistory() |
Purges the entire job history. |
PurgeJobHistory(JobHistoryFilter) |
The PurgeJobHistory method removes system records maintaining execution history for all jobs, or those matching the filter criteria specified. |
PurgeJobHistory()
Purges the entire job history.
public void PurgeJobHistory ();
member this.PurgeJobHistory : unit -> unit
Public Sub PurgeJobHistory ()
Applies to
PurgeJobHistory(JobHistoryFilter)
The PurgeJobHistory method removes system records maintaining execution history for all jobs, or those matching the filter criteria specified.
public void PurgeJobHistory (Microsoft.SqlServer.Management.Smo.Agent.JobHistoryFilter filter);
member this.PurgeJobHistory : Microsoft.SqlServer.Management.Smo.Agent.JobHistoryFilter -> unit
Public Sub PurgeJobHistory (filter As JobHistoryFilter)
Parameters
- filter
- JobHistoryFilter
A JobHistoryFilter object that constrains record removal to those records identified by the criteria set in the object.