OccurrenceCount Property

未來的 Microsoft SQL Server 發行版本將不再提供此功能。請避免在新的開發工作中使用此功能,並計劃修改目前使用此功能的應用程式。

The SQL Server Agent alert occurrence count represents the number of times the alert has fired after a specific date and time.

語法

object
.OccurrenceCount [= value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list
  • value
    A long integer that specifies the number of times a SQL Server Agent alert has been raised after the reset date for the alert

Data Type

Long

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetOccurrenceCount(LPLONG pRetVal);

備註

The CountResetDate property marks date and time for the beginning of counting for a SQL Server Agent alert occurrence count. Use the ResetOccurrenceCount method to set the alert occurrence count to zero.

Applies To:

Alert Object

 

請參閱

參考

CountResetDate Property
ResetOccurrenceCount Method

說明及資訊

取得 SQL Server 2005 協助