Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Resets the alert occurrence count back to zero.
Namespace: Microsoft.SqlServer.Management.Smo.Agent
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub ResetOccurrenceCount
'Usage
Dim instance As Alert
instance.ResetOccurrenceCount()
public void ResetOccurrenceCount()
public:
void ResetOccurrenceCount()
member ResetOccurrenceCount : unit -> unit
public function ResetOccurrenceCount()
Remarks
The ResetOccurrenceCount method:
Sets the OccurrenceCount property to 0.
Sets the date and time that specifies the start of counting to the current date and time in the LastOccurrenceDate and CountResetDate properties.
Examples
Scheduling Automatic Administrative Tasks in SQL Server Agent
See Also
Reference
Microsoft.SqlServer.Management.Smo.Agent Namespace