输入banner图图片脚本导航/分类

Sql server 数据库 单用户切换为多用户

使用master 下的sysprocesses 查询 db正在使用的spid 如

select spid from sysprocesses
where dbid=DB_ID(‘DbName‘)

 

然后执行 exec(‘kill xx‘)

alter database set MULTI_USER

Sql server 数据库 单用户切换为多用户

标签: