SQL-DMO

ResetOccurrenceCount Method

The ResetOccurrenceCount method reinitializes history data for a SQLServerAgent alert.

Applies To
Alert Object

Syntax

object.ResetOccurrenceCount( )

Parts

object

Expression that evaluates to an object in the Applies To list

Prototype (C/C++)

HRESULT ResetOccurrenceCount();

Remarks

The ResetOccurrenceCount method:

Alert history values are visible in SQL-DMO through the CountResetDate, LastOccurrenceDate, and OccurrenceCount properties of the Alert object.

See Also

CountResetDate Property

OccurrenceCount Property

LastOccurrenceDate Property