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.