SQL Server: Database stuck in “Restoring” state

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

    This may be fairly obvious, but it tripped me up just now:

    If you are taking a tail-log backup, this issue can also be caused by having this option checked in the SSMS Restore wizard - "Leave source database in the restoring state (WITH NORECOVERY)"

    enter image description here

提交回复
热议问题