|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 12:01 PM
Points: 1,282,
Visits: 743
|
|
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
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 12:01 PM
Points: 1,282,
Visits: 743
|
|
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
|
|
|
|