(Note: This repo is built into HTML pages hosted on ReadTheDocs, and is intended to be viewed here.)
Welcome to Topical Trace Flags, a collection of SQL Server trace flags organized by area of the SQL engine. The goal of this project is to present the full set of publicly-known documented and undocumented trace flags in a usable and intuitive way. The content is always a work-in-progress and your contributions are always welcome! Please review the disclaimers, conventions, and table of contents below to familiarize yourself with the collection's limitations and it's organization. Thanks for dropping by!
Editor/Primary compiler: Aaron Morelli
License: Topical Trace Flags is licensed under the MIT license.
Short Disclaimer: The majority of these flags are undocumented by Microsoft, and therefore unsupported. This repository has neither the authority nor ability to vouch for complete accuracy in the descriptions provided. The contributors to this repository assumes no responsibility for any negative (or positive!) consequences arising from the use or misuse of these trace flags in any production or non-production environment. For more information, see the full Disclaimers page. Use at your own risk.
Flags are organized into 3 main parent categories (and an "other" category), with specific pages for each subject area within a category. Each page contains a brief description of that subject area, followed by a table with short descriptions of the flags. This table is followed by more verbose descriptions for each flag, including important links. For a full description of the conventions of this repository, see the Conventions page.
How to Use
Queries
- Statistics and Estimation
- Compilation Informational
- Compilation Behavioral
- Query Execution
- Plan Caching
Databases
- Databases and Files
- Locking and Waiting
- Transactions, Logging, and Recovery
- Backup And Restore
- CHECKDB And Corruption
Server
- General Instance-level
- SQLOS Scheduling and CPU
- SQLOS Memory and Buffer Pool
- Disk and Network IO
- Background Tasks
- Security
- Connectivity
- HADR / Distributed Technologies
- Special Features
- Exceptions and Memory Dumping
- Miscellaneous Info
Other