DROP EVENT SESSION (Transact-SQL)
Applies to:
SQL Server
Azure SQL Managed Instance
Drops an event session.
Transact-SQL syntax conventions
Syntax
DROP EVENT SESSION event_session_name
ON SERVER
Note
To view Transact-SQL syntax for SQL Server 2014 (12.x) and earlier versions, see Previous versions documentation.
Arguments
event_session_name
Is the name of an existing event session.
Remarks
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;
GO
See Also
CREATE EVENT SESSION (Transact-SQL)
ALTER EVENT SESSION (Transact-SQL)
sys.server_event_sessions (Transact-SQL)
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho