Restore Backup from 2017 to Sql 2014 Sql
Hello,
I have Sql Server 2017 installed previously and now i uninstall it and installed Sql 2014, I need to restore Backup taken from Sql Server 2017 but as per my understanding, i can't restore into Sql server 2014 because backup taken from sql server 2017.
Could you please guide me is it any way i can restore it?
Thank You!
SQL Server Other
7 answers
Sort by: Most helpful
-
-
Edwin M Sarmiento 261 Reputation points
2020-09-09T20:29:32.587+00:00 Re-install SQL Server 2017, restore the backup you've taken and follow the solutions provided in that article
-
Olaf Helper 47,436 Reputation points
2020-09-10T13:42:23.04+00:00 Script out the database design without data and create a new database on 2014 with that script.
Then copy over the data with Import/Export wizard or via linked server or with an SSIS package. -
Tom Phillips 17,771 Reputation points
2020-09-10T15:01:00.62+00:00 You can't. There is no way to restore a SQL Server backup to a lower version.
-
Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
2020-09-10T21:01:31.113+00:00 Step one of your operation is to restore that backup on SQL 2017 (or SQL 2019). There is no way around that.
Then there are several alternatives to transfer schema and data to SQL 2014. Being the kind of person I am, I would build an empty database from the scripts I have in version control, since that is my master. Then I would run some SELECT queries to generate BCP commands to bulk out the data and load. Before I load, I would disable all foreign keys and re-enable them afterwards. I might also do the same with all non-clustered indexes to speed up the load.
If you don't have any version control, you can use the Generate Scripts feature in SSMS. Just beware that by default it does not script exactly everything, so click the Advanced button and make sure that you include everything you want.
That wizard also includes an option to script data, but I would only use that for a really small database, say below 50 MB.
You don't have to use BCP if you are not comfortable with that method. The Import/Export wizard or some SSIS package may fit you better.