kill_database_sessions
Kill active sessions on a SQL Server database to resolve blocking and free up connections. Specify session IDs for targeted termination or omit to terminate all sessions.
Instructions
Kill specific sessions connected to a database
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionIds | No | Specific session IDs to kill (default: all sessions) | |
| databaseName | Yes | Database name |