且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将旧备份从SQL Server 7 SP4还原到最新的SQL Server版本?

更新时间:2023-02-03 18:25:57

这是三版规则。例如,对于SQL Server 2012,只能还原2008R2、2008和2005版本的数据库。同样,SQL Server 7数据库可以还原到2005,但没有更高版本。要将其还原到2014年,必须(按规则)必须将其还原到2005年,在2005年进行备份并将其还原到2012年,然后才将2012年备份还原到2014年。但是,有一个例外:2014年承认2005 SP4,因此您可以跳过第二步,直接从2005年恢复到2014年(但仅从2005 SP4开始)。

It's a 'three-version' rule. For example, to SQL Server 2012 one can only restore databases from 2008R2, 2008 and 2005 versions. Similarly, SQL Server 7 database can be restored to 2005, but no later version. To restore it to 2014, you will (by the rule) have to restore it to 2005, take a backup on 2005 and restore it to 2012, and only then 2012 backup restore to 2014. However, there is an exception: 2014 acknowledges the 2005 SP4, so you can skip the second step, and restore straight from 2005 to 2014 (but only from 2005 SP4).