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

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

 

然后执行 exec(‘kill xx')

alter database set MULTI_USER

相关文章:

  • 2021-11-23
  • 2021-12-09
  • 2021-06-18
  • 2021-12-31
  • 2022-02-25
  • 2021-08-24
  • 2021-08-08
猜你喜欢
  • 2022-12-23
  • 2021-06-07
  • 2022-12-23
  • 2021-07-24
  • 2021-12-28
相关资源
相似解决方案