ResetOccurrenceCount Method
Dieses Feature wird in einer zukünftigen Version von Microsoft SQL Server entfernt. Verwenden Sie dieses Feature beim Entwickeln neuer Anwendungen nicht, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird.
The ResetOccurrenceCount method reinitializes history data for a SQL Server Agent alert.
Syntax
object
.ResetOccurrenceCount(
)
Parts
- object
Expression that evaluates to an object in the Applies To list.
Prototype (C/C++)
HRESULT ResetOccurrenceCount();
Hinweise
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:
Siehe auch
Verweis
CountResetDate Property
OccurrenceCount Property
LastOccurrenceDate Property