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.
Applies To:
参照
関連項目
CountResetDate Property
OccurrenceCount Property
LastOccurrenceDate Property