Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
Drops a trace event session.
DROP TRACE EVENT SESSION [ IF EXISTS ] session-name UNCONDITIONALLY
When UNCONDITIONALLY is specified, dropping an active session automatically stops the session before removing its definition. Otherwise, an error is returned.
You must have the MANAGE ANY TRACE SESSION system privilege.
None
SQL/2008 Vendor extension.
The following statement drops the trace event session named my_session:
DROP TRACE EVENT SESSION my_session;