Will Always On remain uninterrupted while upgrading SQL Server 2019 to SQL Server 2022?

ramazan göksoy 0 Reputation points
2025-02-06T09:14:08.6433333+00:00

I have two servers running SQL Server 2019 in a primary-secondary Always On configuration, and I want to upgrade them to SQL Server 2022. If I upgrade them separately, will Always On remain uninterrupted?

My plan is to first upgrade the secondary server to SQL Server 2022, then failover the primary role to it and upgrade the original primary server. Will my servers continue running without downtime during this process

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

2 answers

Sort by: Most helpful
  1. Erland Sommarskog 116.5K Reputation points MVP
    2025-02-06T22:22:26.9633333+00:00

    Yes, I believe that this will work. But I very much recommend that you set up a test AG with some VMs or similar, so that you can verify that the process works.

    0 comments No comments

  2. ZoeHui-MSFT 40,356 Reputation points
    2025-02-07T01:50:18.5233333+00:00

    Hi @ramazan göksoy,

    When upgrading a SQL Server instance that hosts an Always On availability group (AG) to a new SQL Server version, you can reduce downtime for the primary replica to only a single manual failover by performing a rolling upgrade (or two manual failovers if failing back to the original primary).

    Kindly check Upgrade availability group replicas.

    Before starting the upgrade, ensure you have full backups of all databases and configurations.

    Test the upgrade process in a non-production environment to validate the steps and ensure compatibility with your applications.

    Regards,

    Zoe Hui


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

    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.