What are trace flags?

April 29th, 2008 by uCertify Leave a reply »

Trace flags are used to diagnose performance issues or debug stored procedures. Trace flags are of the following two types:

  • Session: Session trace flags are active only for a specified connection. A trace flag enabled in a session does not disturb the trace flag opened in another session.
  • Global: Global trace flags are set at server level and are visible to every connection. Some of the flags can be enabled at global level, whereas others can be enabled at global or session levels.

Trace flags can be enabled by using the DBCC TRACEON stored procedure, and disabled by using the DBCC TRACEOFF stored procedure. The status of a trace flag can be displayed by using the DBCC TRACESTATUS stored procedure.

Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
  • Share/Bookmark
Advertisement

Leave a Reply

uCertify.com | Our Company | Articles | Contact Us | News and Press Release | uCertify India | Entries (RSS)
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD    Cisco Certification: CCNA, CCENT    A+, Network+, Security+ Project+
Oracle Certification: OCP 11g, OCP 10g, OCA 11g, OCA 10g    CIW foundation    EC-212-32,    CISSP    Photoshop ACE CS4    Adobe Flash ACE, PMP, CAPM
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.