SQL Server Science
Technical Articles for the DBA / Developer
Home » trace flags

Testing Trace Flag 2861 and Zero-Cost Plans on SQL Server 2019 and 2025

2026-10-31 · by Hannah Vernon · in performance

Does SolarWinds DPA’s trace flag 2861 keep zero-cost plans in the plan cache? A test on SQL Server 2019 and 2025 found no measurable effect.

SQL Server Trace Flags

2015-06-09 · by Hannah Vernon · in configuration

Maintaining an up-to-date list of SQL Server Trace Flags is time consuming, and difficult since the majority are undocumented. Aaron over at SQLCrossJoin.wordpress.com maintains an incredibly detailed and comprehensive list of trace flags at https://sqlcrossjoin.wordpress.com/category/trace-flags/….

Search

Categories

  • AI for DBAs
  • announcements
    • events
  • basics
    • localization
  • configuration
  • Data Architecture
  • DMVs
  • documentation
  • extended-events
  • Git for DBAs
  • High Availability
  • Hot Takes
  • Internals
  • maintenance
    • patching
  • Opinion
  • performance
  • PostgreSQL
  • Professional Development
  • recovery
  • reporting
  • ROLLBACK;
  • security
    • data security
  • service broker
  • SQL Server Agent
  • statistics
  • sys
  • t-sql
    • xml
  • tools
    • data masking
    • wsus
  • troubleshooting
  • Uncategorized

Pages

  • About SQL Server Science
  • Blog Series
    • Backup & Recovery from First Principles: Series Contents
    • Database as a Versioned Contract: Series Contents
    • Extended Events in Production: Series Contents
    • Git for DBAs: Series Contents
    • How SQL Server Stores Data: Series Contents
    • Logins, SIDs, and Kerberos from First Principles: Series Contents
    • Proving the Restore: Series Contents
    • T-SQL Style Guide, Tested: Series Contents
    • The UNKNOWN Problem: NULL Traps in T-SQL, Series Contents
    • Undocumented Changes in SQL Server 2022 and 2025: Series Contents
    • Work That Flows: Kanban for DBAs: Series Contents
  • Get Better Help with a Minimal, Complete, and Verifiable Example, or MCVE
  • Privacy Policy

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.

To find out more, including how to control cookies, see here: Cookie Policy

Copyright © 2026 SQL Server Science