The PerfMonMode property controls Windows NT Performance Monitor polling behavior when the monitor is launched.
object.PerfMonMode [= value]
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
value | Long integer specifying Windows NT Performance Monitor polling behavior as described in Settings |
Constant | Value | Description |
---|---|---|
SQLDMOPerfmon_Continuous | 0 | Windows NT Performance Monitor polls for statistics using the operating system default time slice |
SQLDMOPerfmon_OnDemand | 1 | Windows NT Performance Monitor polls for statistics when directed to do so by the user |
The PerfMonMode property determines polling behavior as Windows NT Performance Monitor is launched. Windows NT Performance Monitor polling behavior can be changed in Windows NT Performance Monitor when the application has successfully started.
Long, enumerated
Read/write
HRESULT GetPerfMonMode(SQLDMO_PERFMON_TYPE* pRetVal);
HRESULT SetPerfMonMode(SQLDMO_PERFMON_TYPE NewValue);