DDBC TRACEON in Microsoft SQL Server

DDBC TRACEON Turns on (enables) the specified trace flag.
DBCC TRACEON ( trace# [ ,…n ] )
trace#: Is the number of the trace flag to turn on.
n:Is a placeholder indicating that multiple trace flags can be specified.

Trace flags are used to customize certain characteristics controlling 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.
DBCC TRACEON permissions default to members of the sysadmin fixed server role only, and are not transferable.
This example disables hardware compression for tape drivers.



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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s