Viewing post 1 (of 1 total)
DECLARE @SQL VARCHAR(8000)
SELECT @SQL=COALESCE(@SQL, '') + 'KILL ' + CAST(SPID AS VARCHAR(10)) + '; '
FROM SYS.SYSPROCESSES
SELECT @SQL
EXEC(@SQL)
December 7, 2009 at 1:00 am
#1088397