DBCC TRACEOFF in Microsoft SQL Server

DBCC TRACEOFF Disables the specified trace flag(s).

Syntax
DBCC TRACEOFF ( trace# [ ,…n ] )

Arguments
trace#: Is the number of the trace flag to disable.
n:Is a placeholder indicating that multiple trace flags can be specified.

Remarks
Trace flags are used to customize certain characteristics controlling how Microsoft® SQL Server™ operates.
To find out information about the status of trace flags, use DBCC TRACESTATUS. To enable certain trace flags, use DBCC TRACEON.

Result Sets

DBCC TRACEOFF returns this result set (message):
DBCC execution completed. If DBCC printed error messages, contact your system administrator.

Permissions
DBCC TRACEOFF permissions default to members of the sysadmin fixed server role only, and are not transferable.

Examples
This example disables the effects of trace flag 3205.
DBCC TRACEOFF (3205)
GO

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.