Purpose
Requests termination of the specified session.
Syntax
SESSION KILL unitysessionid ;Parameters
- unitysessionid
- Specifies the session ID for termination.
Usage Considerations
For sessions associated with managed routing rules, this command does not abort in-flight requests. If there is an in-flight request, the session kill occurs once the current request is complete. Session kill commands are tracked in the audit log.
For sessions associated with passive routing rules, the command issues an async abort if there is an in-flight request. The session is closed when the current running query (if any) returns.
Example
SESSION KILL 1001;