Discussion:
Killing SPIDs
(too old to reply)
Gary
2005-06-06 21:20:30 UTC
Permalink
Is there any other way to kill a process besides using kill?

I have a spid that will not die..and has been in the killed/rollback for
roughly 2hrs with the current wait reason as Waiting on OLEDB provider

The procedure the spid is calling uses an opendatasource to a Oracle server.
Hari Prasad
2005-06-06 21:24:12 UTC
Permalink
Hi,

KILL is the only command available to remove a partcular SPID from SQL
Server. To reove all the connections connected to a database use

alter database <dbname> set single_user with rollback immediate

To get the status of KILL command you could use :-

KILL <SPID> WITH STATUSONLY

WITH STATUSONLY

Specifies that SQL Server generate a progress report on a given spid or UOW
that is being rolled back. The KILL command with WITH STATUSONLY does not
terminate or roll back the spid or UOW. It only displays the current
progress report.


Thanks
Hari
SQL Server MVP
Post by Gary
Is there any other way to kill a process besides using kill?
I have a spid that will not die..and has been in the killed/rollback for
roughly 2hrs with the current wait reason as Waiting on OLEDB provider
The procedure the spid is calling uses an opendatasource to a Oracle server.
Mike Epprecht (SQL MVP)
2005-06-06 21:31:04 UTC
Permalink
Hi

With linked servers, stop MSDTC and re-start it.

Regards
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: ***@epprecht.net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/
Post by Gary
Is there any other way to kill a process besides using kill?
I have a spid that will not die..and has been in the killed/rollback for
roughly 2hrs with the current wait reason as Waiting on OLEDB provider
The procedure the spid is calling uses an opendatasource to a Oracle server.
Gary
2005-06-06 22:07:20 UTC
Permalink
It's not setup as a linked server per se, it just uses OPENDATASOURCE.
However, I stopped MSDTC to see if that would make it stop, and it didnt.
Anyone have any other suggestions, before I restart the service? It's on a
production box and I'd rather not
Post by Mike Epprecht (SQL MVP)
Hi
With linked servers, stop MSDTC and re-start it.
Regards
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
Post by Gary
Is there any other way to kill a process besides using kill?
I have a spid that will not die..and has been in the killed/rollback for
roughly 2hrs with the current wait reason as Waiting on OLEDB provider
The procedure the spid is calling uses an opendatasource to a Oracle server.
Anthony Thomas
2005-06-19 04:31:30 UTC
Permalink
OPENDATASOURCE in a SQL Agent Job? A stored procedure? Ad hoc T-SQL from a
user or a remote process? Or, are you using DTS?

Chances are that SQL Server had to "go preimptive" and spawn an external
thread. You could check the task list and kill whatever thread was hung
keeping the KILL from ROLLING BACK.

Sincerely,


Anthony Thomas
--
"Gary" <***@yahoo.com> wrote in message news:***@TK2MSFTNGP15.phx.gbl...
It's not setup as a linked server per se, it just uses OPENDATASOURCE.
However, I stopped MSDTC to see if that would make it stop, and it didnt.
Anyone have any other suggestions, before I restart the service? It's on a
production box and I'd rather not
Post by Mike Epprecht (SQL MVP)
Hi
With linked servers, stop MSDTC and re-start it.
Regards
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
Post by Gary
Is there any other way to kill a process besides using kill?
I have a spid that will not die..and has been in the killed/rollback for
roughly 2hrs with the current wait reason as Waiting on OLEDB provider
The procedure the spid is calling uses an opendatasource to a Oracle server.
Continue reading on narkive:
Loading...