killallAPPsession
USE master;
GO
DECLARE @SQL VARCHAR(MAX);
while 1=1
SET @SQL=''
SELECT @SQL=@SQL+'; KILL '+RTRIM(SPID)
FROM master..sysprocesses
WHERE dbid=DB_ID('datayesdb');
EXEC(@SQL);
waitfor delay '0:0:1'
GO
网站栏目:killallAPPsession
本文URL:http://scjbc.cn/article/jejigg.html
GO
DECLARE @SQL VARCHAR(MAX);
while 1=1
SET @SQL=''
SELECT @SQL=@SQL+'; KILL '+RTRIM(SPID)
FROM master..sysprocesses
WHERE dbid=DB_ID('datayesdb');
EXEC(@SQL);
waitfor delay '0:0:1'
GO
网站栏目:killallAPPsession
本文URL:http://scjbc.cn/article/jejigg.html