How to stop or cancel or kill a restore of a database with Microsoft SQL Server 2005? Can you give me the request or procedure
Asked
Active
Viewed 4.6k times
2 Answers
9
In SSMS type sp_who
to get a list of open SPIDs (session ID's).
Find the one that contains your Restore. The command will be something like RESTORE DATABASE
.
Use kill XXX
where XXX is the SPID of that transaction.

JNK
- 63,321
- 15
- 122
- 138
-
I've got the following error `Only user processes can be killed.` – AlexMelw Jun 12 '17 at 08:55
1
Find this spid and kill them or rollback transaction. Use sp_who for search the spid of restore.

skorpk
- 424
- 3
- 6
-
6I did sp_who but the retore is not here, however the Management Studio Express say me Restoring... – Christophe Debove May 11 '11 at 13:04
-
2
-
Maybe you are actually looking for the same answer as found in this thread (if DB says "Restoring" but restore process is completed) https://stackoverflow.com/a/521039/1095493 – Nick Niebling Jul 09 '17 at 20:50