SQL Server: Kill Process using Stored Procedure
问题 I want to modify the following as it doesn't seem to kill processes - I think its supposed to disconnect users (is this the same?). I want to be able to kill all process for a particular database - how can I modify the below: create procedure [dbo].[sp_killusers](@database varchar(30)) as ---------------------------------------------------- -- * Created By David Wiseman, Updated 19/11/2006 -- * http://www.wisesoft.co.uk -- * This procedure takes the name of a database as input -- * and uses