Inactive Extended Event Sessions

  • To check if an extended event session with a name exists I use the following statement:

    SELECT 1 FROM sys.dm_xe_sessions WHERE name = 'exName'

    This only returns 1 if the session is started.

    How can I determine the inactive sessions also?

    (SQL Server 2008)

    thanks,

    Robbert

  • I asked the same question on twitter and got an instant reply from John Sansom (@SqlBrit)

    The answer is: use sys.server_event_sessions, not sys.dm_xe_sessions.

    Thanks John,

    Robbert

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply