Ce sujet n'a pas encore été évalué - Évaluez ce sujet

Propriété Alert.PerformanceCondition

Gets or sets the performance condition text.

Espace de noms :  Microsoft.SqlServer.Management.Smo.Agent
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string PerformanceCondition { get; set; }

Valeur de propriété

Type : System.String
A String value that specifies the performance condition.

When setting the PerformanceCondition property, the value requires the following syntax:

ObjectName|CounterName|Instance|ComparisonOp|CompValue

Part

Description

ObjectName

Name of a monitored Microsoft SQL Server object

CounterName

Name of a counter exposed by the object

Instance

Name of an instance of the counter

ComparisonOp

One of the relational operators =, >, or <

CompValue

Numeric value compared

For example, to create an alert raised when the average wait time for an extent lock rises above 1 second (1,000 milliseconds), set the PerformanceCondition property using the string:

SQLServer:Locks|Average Wait Time (ms)|Extent|>|1000

Many SQL Server Performance Monitor counters do not define instance parameters. When an instance parameter is not applicable, indicate that no instance is selected using an empty Instance part in the value string, as in:

SQLServer:Access Methods|Page Splits/sec||>|50

Planification des tâches administratives automatiques dans l'Agent SQL Server

Cela vous a-t-il été utile ?
(1500 caractères restants)

Ajouts de la communauté

AJOUTER
© 2013 Microsoft. Tous droits réservés.