Forum Discussion
nishium12
Nov 20, 2026Copper Contributor
Is it recommended to use traces and SQL Profiler with the 2019 version of SQL Server?
I wanted to know if I can actually use traces or profiles, or if Extended Events is better. Please.
Robina
Nov 20, 2026MCT
No, it is not recommended to use SQL Trace or SQL Server Profiler with the SQL Server 2019 Database Engine.
Both SQL Trace and SQL Server Profiler (for the Database Engine) are officially deprecated by Microsoft. While they still work in SQL Server 2019 for backward compatibility, Microsoft advises against using them in new development and recommends migrating existing monitoring and troubleshooting workflows away from them.
Why You Should Avoid Them in SQL Server 2019:
- Higher Performance Overhead: Running SQL Trace, and especially attaching the SQL Server Profiler GUI directly to a busy production instance, adds significantly more CPU, memory, and I/O overhead than modern alternatives.
- Missing Modern Events: New SQL Server features and diagnostics are instrumented in Extended Events, not in legacy SQL Trace.
- Deprecation: They are maintained only for legacy compatibility and are slated for removal in a future version.
What Microsoft Recommends Instead:
1. Extended Events (XEvents): The official replacement for SQL Trace. It is a lightweight, highly scalable event-handling architecture with much lower overhead and richer filtering/target options (ring buffer, event file, histogram, etc.).
2. XEvent Profiler in SSMS: If you prefer the familiar, live grid-based UI of SQL Server Profiler, SQL Server Management Studio (SSMS) includes XEvent Profiler right in Object Explorer. It provides a Profiler-like experience powered by Extended Events under the hood (with built-in Standard and TSQL templates).
3. Query Store: For ongoing query performance analysis and plan regression troubleshooting, Query Store is usually a much better fit than ad-hoc tracing.
(Note: The one exception is SQL Server Analysis Services (SSAS), where SQL Server Profiler remains supported.)
Official Microsoft Learn Documentation:
- SQL Server Profiler: https://learn.microsoft.com/en-us/sql/tools/sql-server-profiler/sql-server-profiler
- Extended Events overview: https://learn.microsoft.com/en-us/sql/relational-databases/extended-events/extended-events
- Use the SSMS XEvent Profiler: https://learn.microsoft.com/en-us/sql/relational-databases/extended-events/use-the-ssms-xe-profiler
- Deprecated Database Engine features in SQL Server 2019: https://learn.microsoft.com/en-us/sql/database-engine/deprecated-database-engine-features-in-sql-server-2019
Hope this helps!