ResetOccurrenceCount Method
この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。 新しい開発作業では、この機能の使用を避け、現在この機能を使用しているアプリケーションは修正するようにしてください。
The ResetOccurrenceCount method reinitializes history data for a SQL Server Agent alert.
構文
object.ResetOccurrenceCount()
Parts
- object
Expression that evaluates to an object in the Applies To list.
Prototype (C/C++)
HRESULT ResetOccurrenceCount();
説明
The ResetOccurrenceCount method:
Sets to zero the counter representing the number of times an alert has been raised.
Sets the date and time marking the start of counting to the current date and time.
Alert history values are visible in SQL Distributed Management Objects (SQL-DMO) through the CountResetDate, LastOccurrenceDate, and OccurrenceCount properties of the Alert object.