Problemas com versão do SQL server

TI HPF 0 Reputation points
2024-10-18T19:08:21.7833333+00:00

Tenho um servidor executando o SQL Server 2016 Standard Edition e estou precisando voltar um backup nele mas está dando divergência nas versões, como faço para realizar a atualização que aceitaria o meu Backup anterior?

WhatsApp Image 2024-10-17 at 09.40.01

WhatsApp Image 2024-10-17 at 11.24.10

SQL Server | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Erland Sommarskog 129.1K Reputation points MVP Volunteer Moderator
    2024-10-18T21:43:36.5866667+00:00

    This is the English part of Microsoft Q&A. For questions in Portoguese, I suggest that you go to https://learn.microsoft.com/pt-br/answers/questions/ask/.

    You cannot restore a backup from an newer version of SQL Server to an older. You need to install SQL 2019 to restore that backup. If you want that database on your SQL 2016 instance, you need to script it and copy the data manually. Beware that the database may be using features not supported on SQL 2016.

    0 comments No comments

  2. Anonymous
    2024-10-21T01:33:56.16+00:00

    Hi @TI HPF ,

    Thank you for your reaching out and welcome to Microsoft Q&A!

    The SQL Server database files (*.mdf, *.ndf and *.ldf) and backups are not backward compatible.  Backward compatibility is why we cannot restore or attach a database created from a higher version of SQL Server to a lower version of SQL Server. However, there are a few options that can help us to downgrade the database from a higher version of SQL Server to a lower version SQL Server.

    You could refer to How to migrate a SQL Server database to a lower version if you want to restore the backup from a newer version of SQL Server to an older.

    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

    0 comments No comments

Your answer

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