DECLARE @d VARCHAR(8000)
SET @d = ‘ ‘
SELECT
@d = @d + ‘ kill ‘ + CAST(spid AS VARCHAR) + CHAR(13)
FROM
MASTER.sys.sysprocesses
WHERE
dbid = DB_ID(‘ATMS ‘)
EXEC (@d)
时间: 2024-11-01 00:07:35
DECLARE @d VARCHAR(8000)
SET @d = ‘ ‘
SELECT
@d = @d + ‘ kill ‘ + CAST(spid AS VARCHAR) + CHAR(13)
FROM
MASTER.sys.sysprocesses
WHERE
dbid = DB_ID(‘ATMS ‘)
EXEC (@d)