由于某些原因,我无法还原我的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