Export (0) Print
Expand All

DBCC TRACEON

SQL Server 2000

Turns on (enables) the specified trace flag.

Syntax

DBCC TRACEON ( trace# [ ,...n ] )

Arguments

trace#

Is the number of the trace flag to turn on.

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. Trace flags remain enabled in the server until disabled by executing a DBCC TRACEOFF statement. New connections into the server do not see any trace flags until a DBCC TRACEON statement is issued. Then, the connection will see all trace flags currently enabled in the server, even those enabled by another connection.

For more information about the status of trace flags, see DBCC TRACESTATUS.

Result Sets

DBCC TRACEON returns this result set (message):

DBCC execution completed. If DBCC printed error messages, contact your system administrator.
Permissions

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

Examples

This example disables hardware compression for tape drivers.

DBCC TRACEON (3205)
GO

See Also

DBCC

DBCC TRACEOFF

DBCC TRACESTATUS

Trace Flags

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft