SQL Server: Database stuck in “Restoring” state

前端 未结 26 2131
后悔当初
后悔当初 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

    There can also be problem deleting a stuck database if snapshot is enabled. For me this worked:

    1. First I followed Tipu Delacablu steps (read a few posts up)
    2. run command: drop database [your database], which will give you an error telling you the name of the snapshot database
    3. run command: drop database [snapshot database], and then run the command in step 2 again.

提交回复
热议问题