New dbcc commands


dbcc nodetraceon and dbcc nodetraceoff

Description

Enables or disables a trace flag on a local instance.

Syntax

dbcc nodetraceon(trace_flag_number)
dbcc nodetraceoff(trace_flag_number)

Parameters

trace_flag_number – is the number of the trace flag you are enabling or disabling.

Examples

Enables trace flag 3604:

dbcc nodetraceoff(3604)
DBCC execution completed. If DBCC printed error messages, contact a user with System Administrator (SA) role.

Usage

dbcc traceon and dbcc traceoff apply trace flags for the entire cluster, while dbcc nodetraceoff and dbcc nodetraceon apply trace flags locally.


dbcc set_scope_in_cluster

Description

Sets the scope of the dbcc command to the cluster or instance and specifies what the scope is currently set to.

Syntax

dbcc set_scope_in_cluster("cluster"|"instance"|"scope")

Parameters

Examples

Example 1 Sets the dbcc scope to the cluster:

dbcc set_scope_in_cluster('cluster')

Example 2 Sets the dbcc scope to the instance:

dbcc set_scope_in_cluster('instance')

Example 3 Displays the current scope for dbcc commands:

dbcc set_scope_in_cluster('scope')

dbcc quorum

Description

Displays the portion of the quorum device related to cluster membership, including the cluster view records that describe the state of the cluster.

Syntax

dbcc quorum

Examples

Displays the contents of the quorum disk for the server:

dbcc quorum

Usage

Permissions

You must have the sa_role to run dbcc quorum.