Condividi tramite


PurgeJobHistory Method

Questa caratteristica verrà rimossa a partire da una delle prossime versioni di Microsoft SQL Server. Evitare di utilizzare questa caratteristica in un nuovo progetto di sviluppo e prevedere interventi di modifica nelle applicazioni in cui è attualmente implementata.

The PurgeJobHistory method removes system records maintaining execution history for all Microsoft SQL Server Agent jobs, or those matching the filter criteria specified.

Sintassi

object
.PurgeJobHistory( [ Filter ] )

Parts

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

  • Filter
    Optional. A JobHistoryFilter object that constrains record removal to those records identified by the criteria set in the object.

Prototype (C/C++)

HRESULT PurgeJobHistory(
LPSQLDMOJOBHISTORYFILTER pFilter = NULL);

Osservazioni

For more information about using the JobHistoryFilter object properties to identify job history records, see JobHistoryFilter Object.

Applies To: