title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | f1_keywords | helpviewer_keywords | dev_langs | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DROP EVENT SESSION (Transact-SQL) |
DROP EVENT SESSION (Transact-SQL) |
markingmyname |
maghan |
03/06/2017 |
sql |
t-sql |
reference |
|
|
|
[!INCLUDE SQL Server]
Drops an event session.
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions
DROP EVENT SESSION event_session_name
ON SERVER
event_session_name
Is the name of an existing event session.
When you drop an event session, all configuration information, such as targets and session parameters, is completely removed.
Requires the ALTER ANY EVENT SESSION
permission.
The following example shows how to drop an event session.
DROP EVENT SESSION evt_spin_lock_diagnosis ON SERVER;
GO
CREATE EVENT SESSION (Transact-SQL)
ALTER EVENT SESSION (Transact-SQL)
sys.server_event_sessions (Transact-SQL)