简体   繁体   English

SQL Server 2014还原备份失败

[英]SQL Server 2014 restore backup failed

I'm trying to restore a backup file to SQL Server 2014 but I keep getting the following error: 我正在尝试将备份文件还原到SQL Server 2014,但我不断收到以下错误消息:

System.Data.SqlClient.SqlError: The backup of the system database on the device C:\\Program Files\\Microsoft SQL Server\\MSSQL12.MSSQLSERVER\\MSSQL\\Backup\\model_LogBackup_2014-12-16_15-48-23.bak cannot be restored because it was created by a different version of the server (12.00.2254) than this server (12.00.4213). System.Data.SqlClient.SqlError:无法还原设备C:\\ Program Files \\ Microsoft SQL Server \\ MSSQL12.MSSQLSERVER \\ MSSQL \\ Backup \\ model_LogBackup_2014-12-16_15-48-23.bak上系统数据库的备份它是由与该服务器(12.00.4213)不同版本的服务器(12.00.2254)创建的。 (Microsoft.SqlServer.SmoExtended) (Microsoft.SqlServer.SmoExtended)

I created the backup using the same installation of SQL server 2014 using the same machine, I have no clue how the version changed from 12.00.2254 to 12.0.4213.0 and I also can't tell which is the newer version. 我使用同一台计算机上的同一SQL Server 2014安装来创建备份,我不知道版本如何从12.00.2254更改为12.0.4213.0,而且我也无法确定哪个是较新的版本。 I'm stuck I need to restore the backup file and all the posts online didn't suggest a definite answer to this problem. 我被困住了,我需要恢复备份文件,并且所有在线帖子都没有对这个问题给出明确的答案。

Is there a way of changing the version of the current server to match the backup file (or the other way around). 有没有一种方法可以更改当前服务器的版本以匹配备份文件(或者相反)。 I thought about reinstalling but not sure how to end up having the exact version? 我考虑过重新安装,但不确定如何最终获得确切的版本?

Thanks 谢谢

In SQL-Server 2014 SP1 , there are breaking changes to the restoreheader definition (3 new fields), if you use it, you should have a look at this thread: 在SQL-Server 2014 SP1中 ,restoreheader定义(三个字段)进行了重大更改 ,如果使用它,则应查看以下线程:

RESTORE HEADERONLY Error 3013 after the sp1 was applied to SQL Server 2014 将sp1应用于SQL Server 2014之后,还原HEADERONLY错误3013

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM