由於某些原因,我無法還原我的SQL Server快照。無法還原SQL Server快照
我有一個數據庫DB01
的快照DB01_SS
。
當試圖恢復與下面的查詢快照:我得到這個錯誤信息
USE master
GO
ALTER DATABASE DB01 SET SINGLE_USER WITH ROLLBACK IMMEDIATE
GO
RESTORE DATABASE DB01 FROM DATABASE_SNAPSHOT = 'DB01_SS';
GO
ALTER DATABASE DB01 SET MULTI_USER
GO
:
Msg 3137, Level 16, State 1, Line 5
Database cannot be reverted. Either the primary or the snapshot names are improperly specified, all other snapshots have not been dropped, or there are missing files.
Msg 3013, Level 16, State 1, Line 5
RESTORE DATABASE is terminating abnormally.
我已經檢查,該名指定正確。服務器上沒有其他快照可用。我遇到的唯一奇怪的事情是當我登錄SQL Server查找快照文件時。並且在SSMS gui中有一個不同的名字。它被命名爲DB_SS_2017.SS
。當試圖用這個名字來恢復,我得到以下錯誤:
Msg 911, Level 16, State 4, Line 5
Database DB_SS_2017.SS does not exist. Make sure that the name is entered correctly.
Msg 3013, Level 16, State 1, Line 5
RESTORE DATABASE is terminating abnormally.
最後但並非最不重要的,試圖在SSMS再次檢查快照的屬性,當。屬性按鈕變灰了!我怎樣才能恢復SQL Server快照?
剛剛從您的文章,以恢復沒有真正的體驗:你有沒有試過'FROM DATABASE_SNAPSHOT =「DB01_SS.SS'',因爲古怪命名的文件有這樣的結局...... – RealCheeseLord
是的,我都試過了。導致msg 911錯誤,SS不存在。 – MrPowerUser