简体   繁体   English

如何将 SQL Server 2014 数据库备份还原到 SQL Server 2016?

[英]How to restore SQL Server 2014 database backup to a SQL Server 2016?

I get backup of my 2014 version database and try to restore this in another server into database with same name and login.我得到了我的 2014 版本数据库的备份,并尝试将其在另一台服务器中恢复到具有相同名称和登录名的数据库中。 This SQL Server version is 2016.此 SQL Server 版本是 2016。

When restoring the backup file, I get this error:还原备份文件时,出现此错误:

TITLE: Microsoft SQL Server Management Studio标题:Microsoft SQL Server 管理工作室

Restore of database 'TravelEnterDB' failed.数据库“TravelEnterDB”的恢复失败。 (Microsoft.SqlServer.Management.RelationalEngineTasks) (Microsoft.SqlServer.Management.RelationalEngineTasks)

ADDITIONAL INFORMATION:附加信息:

System.Data.SqlClient.SqlError: BACKUP LOG cannot be performed because there is no current database backup. System.Data.SqlClient.SqlError: BACKUP LOG 无法执行,因为当前没有数据库备份。 (Microsoft.SqlServer.SmoExtended) (Microsoft.SqlServer.SmoExtended)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=13.0.16106.4+((SSMS_Rel_16_5).170125-2137)&LinkId=20476如需帮助,请单击: http : //go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=13.0.16106.4+((SSMS_Rel_16_5).170125-2137)&LinkId=20476

I first created this database in SQL Server 2016 and then tried to restore backup file.我首先在 SQL Server 2016 中创建了这个数据库,然后尝试恢复备份文件。

I can restore this backup file in SQL Server 2014 currently.This file has no problem!我目前可以在SQL Server 2014中恢复这个备份文件。这个文件没有问题!

What is problem?什么是问题?

在此处输入图片说明

as noted by hmahdavi this works.正如 hmahdavi 所指出的,这是有效的。 "check " with replace " and uncheck " Tail log backup " restored successfully" “检查”与替换“并取消选中“尾日志备份”恢复成功”

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

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