3

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

Christophe Debove
  • 6,088
  • 20
  • 73
  • 124

2 Answers2

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
1

Find this spid and kill them or rollback transaction. Use sp_who for search the spid of restore.

skorpk
  • 424
  • 3
  • 6