sp_monitor 'enable' and 'disable'

Description

New parameters for sp_monitor enable and sp_monitor disable, which allow these procedures to take a monitoring entity type as an argument. This allows only those configuration options required to access data for that entity to be turned on or off. If no argument is provided, or all is provided, the default behavior is to turn all the required configuration options ON or OFF.

Syntax

sp_monitor enable [, "all" | '<type> [monitoring]' ]
sp_monitor disable [, "all" | '<type> [monitoring]' ]

Parameters

Examples

Example 1

sp_monitor enable, connection
		sp_monitor enable, 'statement monitoring'
		...
		sp_monitor disable, 'connection monitoring'
		sp_monitor disable, 'all monitoring'