Forum Discussion

nishium12's avatar
nishium12
Copper Contributor
Nov 20, 2026

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.

5 Replies

  • For SQL Server 2019, Extended Events (XE) is recommended over SQL Server Profiler and traditional SQL Trace.

     

    - Extended Events: Lightweight, better performance, flexible, and Microsoft-recommended.

    - SQL Profiler: Still available, useful for quick troubleshooting, but has higher overhead.

    - SQL Trace: Supported in SQL Server 2019 but deprecated; avoid using it for new solutions.

     

    My recommendation: Use Extended Events for production monitoring and performance troubleshooting. Use Profiler only for occasional, short diagnostic sessions.

     

    Microsoft documentation: SQL Server Extended Events - https://learn.microsoft.com/en-us/sql/relational-databases/extended-events/extended-events

  • 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!

  • MW_DEV's avatar
    MW_DEV
    Brass Contributor

    Hi, first of all, what exactly are you trying to monitor or troubleshoot? Are you investigating slow queries, blocking, deadlocks, application activity, or general server performance? Your question is very general. The right tool depends on the problem you're trying to solve.

    However, there is a general recommendation for SQL Server 2019 Microsoft recommends Extended Events over SQL Trace and SQL Server Profiler. Both older technologies are deprecated, although they are still available in SQL Server 2019.

  • DaveM121's avatar
    DaveM121
    Tin Contributor

    Yes, SQL Server 2019 still supports SQL Server Profiler and SQL Trace, but Microsoft recommends Extended Events (XEvents) instead.

     

    - SQL Profiler: Still available, useful for quick troubleshooting, but has higher overhead.

    - SQL Trace: Supported but deprecated. Avoid using it for new solutions.

    - Extended Events: Recommended. More lightweight, flexible, and better for production monitoring.

     

    My recommendation: Use Extended Events for SQL Server 2019, especially in production. Use Profiler only for occasional, short-term troubleshooting.

  • CharlesShipp's avatar
    CharlesShipp
    Brass Contributor

    For SQL Server 2019, Microsoft recommends Extended Events (XEvents) over SQL Server Profiler and SQL Trace.

     

    - Extended Events: Recommended. Lightweight, efficient, and suitable for production monitoring and troubleshooting.

    - SQL Server Profiler: Still available, useful for quick troubleshooting, but has higher overhead.

    - SQL Trace: Supported in SQL Server 2019 but deprecated. Avoid using it for new development.

     

    My recommendation: Use Extended Events for ongoing monitoring, performance analysis, and production troubleshooting. Keep Profiler for occasional legacy troubleshooting.

     

    Extended Events is the better long-term choice.