Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we restore SQL Server 2008R2 backup on SQL Server 2014?

Currently, one of our product running on the SQL Server 2008R2.

For new installation client want to go for SQL Serer 2014 because at this location Microsoft is not selling licence for the SQL Server 2008R2.

like image 313
vishal Avatar asked Jun 25 '14 07:06

vishal


People also ask

Can we restore SQL Server 2008 backup to 2017?

Yes, SQL Server is backward compatible. You can restore a database from any previous version of SQL Server that was supported at the time of the release. For SQL Server 2017, you can therefore restore databases from SQL Server 2008 to 2017. SQL Server, however, is not forward compatible.

Can we restore SQL Server 2008 backup to 2019?

A backup taken on SQL Server 2008 and later, can be restored to SQL Server 2019 (15. x) without changing its compatibility level, as long as the database backup has a compatibility level of 100 or higher.

Can we restore SQL Server 2019 backup to 2014?

The harsh and direct answer would be no, you cannot downgrade. You said scripting out and exporting data doesn't work, did you try to set the database compatibility mode to 2014. Then script out the database and create it on 2014 server.

Can we restore SQL Server 2008 backup to 2016?

Yes you can directly migrate to SQl 2016 either attach/deattach or backup and restore.


2 Answers

In SQL Server 2014, you can restore a user database from a database backup that was created by using SQL Server 2005 or a later version. However, backups of master, model and msdb that were created by using SQL Server 2005 through SQL Server 2012 cannot be restored by SQL Server 2014. Also, backups created in SQL Server 2014 cannot be restored by any earlier version of SQL Server.

Source

like image 87
Raj Avatar answered Nov 15 '22 09:11

Raj


Yes.

Wen you restore database backup that created with older version of SQL Server in to new version, SQL Server automatically updated your database in new version. But don't change compatibility level of your database. You can change Compatibility level of your database after restore complete by following query :

ALTER DATABASE test SET COMPATIBILITY_LEVEL = 120
like image 24
mehdi lotfi Avatar answered Nov 15 '22 09:11

mehdi lotfi