SQL Server: Database stuck in “Restoring” state

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

    I had a similar incident with stopping a log shipping secondary server. After the command to remove the server from log shipping and stopped the log shipping from primary server the database on secondary server got stuck in restoring status after the command

    RESTORE DATABASE  WITH RECOVERY
    

    The database messages:

    RESTORE DATABASE successfully processed 0 pages in 18.530 seconds (0.000 MB/sec).

    The database was usable again after those 18 seconds.

提交回复
热议问题