SQL Server: Database stuck in “Restoring” state

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

提交回复
热议问题