Udostępnij za pośrednictwem


DROP EVENT SESSION (Transact-SQL)

Drops an event session.

Ikona łącza do tematu Transact-SQL Syntax Conventions

Składnia

DROP EVENT SESSION event_session_name
ON SERVER

Arguments

  • event_session_name
    Is the name of an existing event session.

Uwagi

When you drop an event session, all configuration information, such as targets and session parameters, is completely removed.

Permissions

Requires the ALTER ANY EVENT SESSION permission.

Examples

The following example shows how to drop an event session.

DROP EVENT SESSION evt_spin_lock_diagnosis
ON SERVER

Zobacz także

Odwołanie

CREATE EVENT SESSION (Transact-SQL)

ALTER EVENT SESSION (Transact-SQL)

sys.server_event_sessions (Transact-SQL)