How to restore SQL server 2019 database backup (.bak) to SQL server 2017.

Shyam Kumar 0 Reputation points
2024-05-14T05:26:36.97+00:00

Hi,

In one of our legacy project we are using SQL Server 2017 database, and in this we need to restore backup (.bak) taken from SQL Server 2019 database. While database restore (taken from 2019) in SQL server 2017 we are getting incompatibility error. Can you please help us in resolving this error ?SQL Server Error

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,917 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Olaf Helper 41,571 Reputation points
    2024-05-14T05:30:49.19+00:00

    It is impossible to restore a backup from a higher SQL Server version to a lower (older) one, backups/databases are not backward compatible.


  2. LucyChenMSFT-4874 1,580 Reputation points
    2024-05-14T06:50:53.81+00:00

    Hi @Shyam Kumar,

    Thanks for your information.

    Here is an official document, it explains how to copy a database that's hosted on a later version of SQL Server to an earlier version of SQL Server.

    User's image Hope this can help you well.

    If you have any concerns, please feel free to share with us.

    Best regards,

    Lucy Chen


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    https://docs.microsoft.com/en-us/answers/support/email-notifications


  3. Erland Sommarskog 102.4K Reputation points
    2024-05-14T21:17:25.0433333+00:00

    The only way to restore this backup on that instance is to upgrade it to SQL 2019.

    If this is not an option, you can try the Copy Database Wizard in Management Studio or try copy with help of a BACPAC.

    Keep in mind the database may use syntax or features not available on SQL 2017.

    0 comments No comments

  4. yunus emre ISIK 171 Reputation points
    2024-05-15T05:03:15.03+00:00

    You can't.

    But you can try at source server , "export data-tier application" and then at the destination server, databases --> right click --> "Import data-tier application".

    0 comments No comments