SQL Server: Database stuck in “Restoring” state

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

    Have you tried running a VERIFY ONLY? Just to make sure it's a sound backup.

    http://msdn.microsoft.com/en-us/library/ms188902.aspx

    0 讨论(0)
  • 2020-11-28 17:54

    I have got the MyDbName (Restoring...) case because of SQL Express licensed limit.

    In the log file, I found this:

    CREATE DATABASE or ALTER DATABASE failed because the resulting cumulative database size would exceed your licensed limit of 10240 MB per database.

    So if you are trying to restore a bigger database, you need to switch your SQL Express server to Developer edition for instance.

    0 讨论(0)
提交回复
热议问题