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.
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/….