declare @i int declare cur cursor for select spid from sysprocesses where db_name(dbid)= 'Your_Database_Name' open cur fetch next from cur into @i while @@fetch_status=0 begin exec('kill '+@i) fetch next from cur into @i end close cur deallocate cur

 

 

转:https://www.jb51.net/article/32708.htm

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2021-11-18
  • 2021-09-03
  • 2021-07-10
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-05-16
相关资源
相似解决方案