我在使用MS SQL 2017 Express恢复备份时遇到以下错误:
Msg 3287, Level 16, State 1, Line 11
The file ID 2 on device 'C:\Backups\Test180529.bak' is incorrectly formed and can not be read.
Msg 3013, Level 16, State 1, Line 11
RESTORE DATABASE is terminating abnormally.
进行了测试备份,并在同一个MS SQL 2017 Express服务器实例上进行了验证:
BACKUP DATABASE [Test] TO DISK = N'C:\Backups\Test180529.bak' WITH NOFORMAT, INIT, NAME = N'Test-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, NO_COMPRESSION, STATS = 50, CHECKSUM
GO
declare @backupSetId as int
select @backupSetId = position from msdb..backupset where
database_name=N'Test' and backup_set_id=(select max(backup_set_id) from msdb..backupset where database_name=N'Test' )
if @backupSetId is null begin raiserror(N'Verify failed. Backup information for database ''Test'' not found.', 16, 1) end
RESTORE VERIFYONLY FROM DISK = N'C:\Backups\Test180529.bak' WITH FILE = @backupSetId, NOUNLOAD, NOREWIND
GO
以下是备份过程消息:
52 percent processed.
Processed 304 pages for database 'Test', file 'Test' on file 1.
100 percent processed.
Processed 2 pages for database 'Test', file 'Test_log' on file 1.
BACKUP DATABASE successfully processed 306 pages in 0.115 seconds (20.788 MB/sec).
The backup set on file 1 is valid.
我已使用此MS SQL Server 2017 Express实例成功还原在其他系统上运行的其他MS SQL Server实例上进行的备份。
有问题的MS SQL Server 2017实例正在Windows Server R2 Standard VPS上运行。
更新
select @@version
Microsoft SQL Server 2017 (RTM) - 14.0.1000.169 (X64) Aug 22 2017 17:04:49 Copyright (C) 2017 Microsoft Corporation Express Edition (64-bit) on Windows Server 2012 R2 Standard 6.3 <X64> (Build 9600: ) (Hypervisor)
答案 0 :(得分:0)
我已使用“SQLServer®2017forMicrosoft®Windows最新累积更新”(https://www.microsoft.com/en-us/download/details.aspx?id=56128)修复了MS SQL 2017 Express设置的备份/恢复主题问题。
我的MS SQL Server 2017 Express设置版本现在是:
Microsoft SQL Server 2017(RTM-CU7)(KB4229789) - 14.0.3026.27(X64)May 10 2018 12:38:11版权所有(C)2017 Microsoft Corporation Express Edition(64位)在Windows Server上2012 R2 Standard 6.3(Build 9600:)(管理程序)