查询连接该库的进程中所否被锁定

select * from master..sysprocesses where   blocked>0 and dbid=db_id('数据库名');

kill被锁的spid

exec ('kill spid')

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-28
  • 2021-11-05
  • 2021-08-25
  • 2021-10-30
  • 2021-06-04
  • 2022-12-23
猜你喜欢
  • 2022-01-04
  • 2022-12-23
  • 2022-02-05
  • 2022-12-23
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案