Hello Geeks and welcome to the Day 63 of the long series of One DMV a day. In this series of blogs I will be exploring and explaining the most useful DMVs in SQL Server. As we go ahead in this series we will also talk about the usage, linking between DMVs and some scenarios where these DMVs will be helpful while you are using SQL Server. For the complete list in the series please click here.

Today I will be covering the last DMV in extended events category. Sys.dm_xe_session_event_actions returns one row each for an action bound to an event. I have talked about what action is in sys.dm_xe_objects. Actions are the ones which are executed when an event is fired.

Sys.dm_xe_session_event_actions provides the list of actions for each event in the session. Let us create the below session. This has two action objects for the event wait_info.

Now let us query sys.dm_xe_session_event_actions.


It is quite simple and evident from the output of sys.dm_xe_session_event_actions that it shows the actions associated with the event. So now you know how to use sys.dm_xe_session_event_actions.

This brings to the end of extended events DMVs. Tomorrow I will be covering another DMV. So stay tuned. Till then

Happy Learning,

Like us on FaceBook | Join the fastest growing SQL Server group on FaceBook |
Follow me on Twitter | Follow me on FaceBook