Поделиться через


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:

Alert Object

См. также

Справочник

CountResetDate Property
OccurrenceCount Property
LastOccurrenceDate Property

Справка и поддержка

Получение помощи по SQL Server 2005