PerfMonMode Property (SQL-DMO)

The PerfMonMode property controls Windows NT Performance Monitor polling behavior when the monitor is launched.

Applies To

Registry Object

Syntax

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

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

Remarks

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.

Data Type

Long, enumerated

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetPerfMonMode(SQLDMO_PERFMON_TYPE* pRetVal);

HRESULT SetPerfMonMode(SQLDMO_PERFMON_TYPE NewValue);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.