SQL Server: Database stuck in “Restoring” state

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

    I had this situation restoring a database to an SQL Server 2005 Standard Edition instance using Symantec Backup Exec 11d. After the restore job completed the database remained in a "Restoring" state. I had no disk space issues-- the database simply didn't come out of the "Restoring" state.

    I ran the following query against the SQL Server instance and found that the database immediately became usable:

    RESTORE DATABASE  WITH RECOVERY
    

提交回复
热议问题