SQL-DMO
PerfMonMode Property
The PerfMonMode property controls Windows Performance Monitor polling behavior when the monitor is started.
Applies To
Registry Object |
Syntax
object.PerfMonMode [= value]
Parts
object
Expression that evaluates to an object in the Applies To list
value
Long integer that specifies Windows Performance Monitor polling behavior as described in Settings
Data Type
Long, enumerated
Modifiable
Read/write
Prototype (C/C++)
HRESULT GetPerfMonMode(SQLDMO_PERFMON_TYPE* pRetVal);
HRESULT SetPerfMonMode(SQLDMO_PERFMON_TYPE NewValue);
Settings
Constant | Value | Description |
---|---|---|
SQLDMOPerfmon_Continuous | 0 | Configures Windows Performance Monitor statistics polling using the operating system default time slice. |
SQLDMOPerfmon_None | 1000 | Invalid value. |
SQLDMOPerfmon_OnDemand | 1 | Windows Performance Monitor polls for statistics when directed to do so by the user. |
Remarks
The PerfMonMode property determines polling behavior as Windows Performance Monitor is started. Windows Performance Monitor polling behavior can be changed in Windows Performance Monitor when the application has successfully started.