Setting Trace Flags with DBCC

To set and clear trace flags with DBCC, use the TRACEON and TRACEOFF options, as described in the following procedures.

    To set trace flags on with DBCC
    To set trace flags off with DBCC