SQL Server Extended Events provide Data Definition Language (DDL) statements for creating and modifying an Extended Events session. In addition, there are dynamic management views and catalog views that you can use to obtain session data and metadata.
You can use Transact-SQL statements to run the views that are provided to obtain the information that you need from every extended events session that you create.
You can use SQL Server Management Studio to create and execute the code samples that are provided. For more information, see Using Object Explorer.

DDL Statements
Use the DDL statements described in the following table to create, change, and drop an Extended Events session.

Catalog Views
Use the catalog views described in the following table to obtain the metadata that is created when you create an event session.

Dynamic Management Views
You use the dynamic management views described in the following table to obtain session metadata and session data. The metadata is obtained from the catalog views, and the session data is created when you start and run an event session.
Note: |
|---|
|
These views do not contain session data until a session starts.
|

See Also