TRACE_EVTNOTIF Wait Type in SQL Server

⏳Part of the SQL Server Wait Types Library, every wait type explained.Related deep dive: ASYNC_NETWORK_IO Wait TypeRelated pillar: Performance & Troubleshooting

Is It a Problem?

Not by itself; it was zero on our SQL Server 2025 lab, which has no event notifications. Get Wait Statistics does not filter it out, so if it ranks, you will see it. Its volume mirrors how often the events you subscribed to fire, so the exposure is in which events you chose.


What It Means

Microsoft lists it as internal use only. It occurs when event notifications are configured, once every time an event that has a notification fires. Event notifications turn trace and DDL events into Service Broker messages on a queue.


When It Does Matter

When it carries real time, a subscription includes something chatty, and the queue processing behind it works as hard. List the notifications:

SELECT
    name,
    parent_class_desc,
    service_name
FROM sys.server_event_notifications
UNION ALL
SELECT
    name,
    parent_class_desc,
    service_name
FROM sys.event_notifications;

The second half runs in the current database. Subscribe narrowly; for heavy auditing needs, SQL Server Audit or a filtered Extended Events session is usually the better tool. The baseline to monitor is the notification queue keeping pace.


The TRACE Family

These are the SQL Trace waits. SQL Trace is deprecated in favour of Extended Events, but the default trace still runs on most instances. The one that costs time is the rowset trace behind Profiler. If one is near the top of your waits, read it next to the waits that usually matter.

  • TRACEWRITERowset trace. The rowset trace provider, used by Profiler, waiting for buffers.Worth investigating
  • SQLTRACE file waitsFile trace. Buffers and I/O for traces written to file, including the default trace.Usually noise
  • SQLTRACE_INCREMENTAL_FLUSH_SLEEPFlush timer. Documented as internal use only; the trace flush sleeping between runs.Usually noise
  • TRACE_EVTNOTIFEvent notifications. Documented as internal use only.Worth a look when it climbs. This page.

Where To Go Next

TRACE_EVTNOTIF is background noise without event notifications. If you are chasing a real problem, start with the waits that cost you time.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *