We have a transaction that has been running for 1 month+ now
Unnoticed, until now when we started with some schema changes.And it has gotten in our way!exec sp_who2 -- part of resultSPID Status Login HostName BlkBy DBName Command----- ------------------------------ ------------------------------ -------- ----- ------------- ----------------64 sleeping xxxxxxxx myhost99 56 DBXX DROP TABLEkill 56------------------------------------------------------------------------------------SPID 56: transaction rollback in progress. Estimated rollback completion: 100%. Estimated time remaining: 0 seconds.Yeah right it's been rolling back for a month now !select req_spid,req_transactionUOW from master..syslockinfo where req_spid = 56req_spid req_transactionUOW ----------- ------------------------------------ 56 00000000-0000-0000-0000-00000000000056 50A33CD6-C9E0-44CA-B8A7-1B50F953778E56 50A33CD6-C9E0-44CA-B8A7-1B50F953778EOk, some distributed stuff...kill '50A33CD6-C9E0-44CA-B8A7-1B50F953778E'------------------------------------------------------------------------------------Server: Msg 6114, Level 16, State 1, Line 1Distributed transaction with UOW {50A33CD6-C9E0-44CA-B8A7-1B50F953778E} is being used by another user. KILL command failed.exec sp_lock -- part of resultspid dbid ObjId IndId Type Resource Mode Status ------ ------ ----------- ------ ---- ---------------- -------- ------ 56 10 0 0 DB S GRANT56 12 0 0 DB S GRANT56 12 409104548 0 TAB Sch-S GRANTHow do we KILL the sucker?, we want process #56 DEAD!rockmoose