PurgeJobHistory Method
この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。 新しい開発作業では、この機能の使用を避け、現在この機能を使用しているアプリケーションは修正するようにしてください。
The PurgeJobHistory method removes system records maintaining execution history for all Microsoft SQL Server Agent jobs, or those matching the filter criteria specified.
構文
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);
説明
For more information about using the JobHistoryFilter object properties to identify job history records, see JobHistoryFilter Object.