SQL Server: Database stuck in “Restoring” state

前端 未结 26 2083
后悔当初
后悔当初 2020-11-28 17:09

I backed up a database:

BACKUP DATABASE MyDatabase
TO DISK = \'MyDatabase.bak\'
WITH INIT --overwrite existing

And then tried to restore it

26条回答
  •  再見小時候
    2020-11-28 17:47

    I have had this problem when I also recieved a TCP error in the event log...

    Drop the DB with sql or right click on it in manager "delete" And restore again.

    I have actually started doing this by default. Script the DB drop, recreate and then restore.

提交回复
热议问题