The ResetOccurrenceCount method reinitializes history data for a SQL Server Agent alert.
object.ResetOccurrenceCount( )
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
The ResetOccurrenceCount method:
Alert history values are visible in SQL-DMO through the CountResetDate, LastOccurrenceDate, and OccurrenceCount properties of the Alert object.
HRESULT ResetOccurrenceCount();
CountResetDate Property | OccurrenceCount Property |
LastOccurrenceDate Property |