Rollback Sql Server from 2022 to 2019

pdsqsql 431 Reputation points
2023-06-09T02:35:35.6+00:00

Hello,

I have recently installed Sql server 2022 express and Configured Log shipping on both Primary and Secondary server which currently running fine both the DB but somehow I need to rollback to Sql Server 2019.

What's the best way I can revert it back?

I know that I can't use SQl server 2022 backup and restore into Sql Server 2019 but can get the original backup previously taken from old server which is lower version of sql server and restore into new Sql Server 2019.

Database is smaller size.

Is it I have to uninstall Sql 2022 and reinstall Sql 2019 then restore the DB and Reconfigure Log shipping?

If anyone have other detail steps that will be great too!

Thanks for your help!

SQL Server Other
0 comments No comments
{count} votes

Accepted answer
  1. ZoeHui-MSFT 41,491 Reputation points
    2023-06-09T06:54:32.5933333+00:00

    Hi @pdsqsql,

    You could not directly roll back from SQL 2022 to SQL 2019.

    You need to uninstall the SQL Server 2022 and use the SQL 2019, restore the backup you have in SQL 2019.

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.


2 additional answers

Sort by: Most helpful
  1. Olaf Helper 47,436 Reputation points
    2023-06-09T05:26:49.0166667+00:00

    I need to rollback to Sql Server 2019.´What's the best way I can revert it back?

    SQL Server database files/backups are not backward compatible and so there is no easy way to rollback to a older SQL Server version.

    You have to uninstall 2022 and re-install 2019. Then you can use the older 2019 backup to recreate the user databases; 2022 can't be used.

    Why haven't you tested the upgrade before in a test enviroment? And normal one have a rollback plan for such a scenario.


  2. pdsqsql 431 Reputation points
    2023-06-17T15:23:22.2466667+00:00

    Thank you!

    Is it Data Migration Assistant (DMA) will be ok to use restore into Primary and secondary then turn on logshipping?

    I am thinking to use DMA first to restore database into Primary from the old/current to server to new server ( I will turn off log backup/restore job of Logshipping during this outage) and then from New Primary to New Secondary server I will restore the database and turn on Logshipping job to compalete the migration process will be ok this approach?

    0 comments No comments

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.