解决方法:
在查询分析器中运行如下代码即可:
declare varchar(100)
while 1=1 begin select top 1 = 'kill '+cast(spid as varchar(3)) from master..sysprocesses where spid > 50 and spid <> @@spid if @@rowcount = 0 break exec(@sql) end本文共 254 字,大约阅读时间需要 1 分钟。
解决方法:
在查询分析器中运行如下代码即可:
declare varchar(100)
while 1=1 begin select top 1 = 'kill '+cast(spid as varchar(3)) from master..sysprocesses where spid > 50 and spid <> @@spid if @@rowcount = 0 break exec(@sql) end转载于:https://my.oschina.net/sky2008/blog/661073