-- Find spid SELECT sd.[name], sp.spid, sp.login_time, sp.loginame FROM sysprocesses sp INNER JOIN sysdatabases sd on sp.dbid = sd.dbid WHERE sd.[name] = <DB_NAME> KILL <spid> GO SET DEADLOCK_PRIORITY HIGH GO ALTER DATABASE <DB_NAME> SET MULTI_USER WITH ROLLBACK IMMEDIATE GO
沒有留言:
張貼留言