SQL Server: Database stuck in “Restoring” state

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

    Use the following command to solve this issue

    RESTORE DATABASE [DatabaseName] WITH RECOVERY
    

提交回复
热议问题