Database restore to local

Rakesh T sasi 6 Reputation points
2022-05-23T11:15:10.787+00:00

TITLE: Microsoft SQL Server Management Studio


Restore of database '******' failed. (Microsoft.SqlServer.Management.RelationalEngineTasks)


ADDITIONAL INFORMATION:

System.Data.SqlClient.SqlError: The database was backed up on a server running version 16.00.0041. That version is incompatible with this server, which is running version 15.00.2000. Either restore the database on a server that supports the backup, or use a backup that is compatible with this server. (Microsoft.SqlServer.SmoExtended)

For help, click: https://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=16.100.46521.71+(SMO-master-A)&LinkId=20476


BUTTONS:

OK


Azure SQL Database
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alberto Morillo 34,671 Reputation points MVP Volunteer Moderator
    2022-05-23T13:41:04.287+00:00

    The backup you create was made on a SQL Server instance created with Microsoft SQL Server 2022 Community Technology Preview 1.0 (CTP 1.0) that is a beta version of SQL Server 2022 that was released on last December. You need to restore the backup on a SQL Server 2012 (beta) instance installed on the local computer.

    You can also script your database schema and data using SSMS on the SQL Server 2022 instance and then run the script on the local SQL Server instance. Hopefully your database is not that big and the source database is not using SQL 2022 new features.

    In addition, you can use SSIS or Export/Import wizard in SSMS to transfer the data from the SQL 2022 database to the SQL Server 2019 instance. You can also export the data from SQL 2022 database to flat files and use bulk insert or bcp to import these filat files into SQL Server 2019.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.