📜  sql server manager close connection - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:28.410000             🧑  作者: Mango

代码示例1
//This should disconnect everyone else, and leave you as the only user:

alter database YourDb set single_user with rollback immediate
//Note: Don't forget

alter database YourDb set MULTI_USER