Właściwość PerformanceCounters.SqlExecutionDuration
Pobiera lub ustawia czas span wartość czas wykonywanie kodu SQL w licznika wydajności.
Przestrzeń nazw: Microsoft.SqlServer.Management.Smo
Zestaw: Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)
Składnia
'Deklaracja
Public Shared Property SqlExecutionDuration As TimeSpan
Get
Set
'Użycie
Dim value As TimeSpan
value = PerformanceCounters.SqlExecutionDuration
PerformanceCounters.SqlExecutionDuration = value
public static TimeSpan SqlExecutionDuration { get; set; }
public:
static property TimeSpan SqlExecutionDuration {
TimeSpan get ();
void set (TimeSpan value);
}
static member SqlExecutionDuration : TimeSpan with get, set
static function get SqlExecutionDuration () : TimeSpan
static function set SqlExecutionDuration (value : TimeSpan)
Wartość właściwości
Typ: System.TimeSpan
Wartość TimeSpan, która reprezentuje czas realizacji SQL w licznika wydajności.