当前位置:Gxlcms > 数据库问题 > Sql server 数据库 单用户切换为多用户

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

时间:2021-07-01 10:21:17 帮助过:3人阅读

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

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

 

然后执行 exec(‘kill xx‘)

alter database set MULTI_USER

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

标签:

人气教程排行