sql server rolling upgrade with always on

Heisenberg 261 Reputation points
2022-03-31T22:04:30.89+00:00

hi folks,
Currently we have 2 node SQL 2014 (Win 2012) AG setup. We have a upcoming project to upgrade sql server from 2014 to 2019. Is it possible to add sql server 2019 node to sql server 2014? if yes i m planning to follow below strategy.

  1. Create 2 additional servers with OS 2016 and SQL 2019.
  2. Add these 2 nodes to SQL 2014 Always on group.
  3. Once all databases are synchronized across all 4 servers then start removing 1st node then 2nd and only keep SQL 2019 nodes.
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,156 questions
{count} votes

2 answers

Sort by: Most helpful
  1. CathyJi-MSFT 22,331 Reputation points Microsoft Vendor
    2022-04-01T02:28:10.917+00:00

    Hi @SQLServerBro,

    No, it is not possible. You may meet some problems when you add different version SQL server instance to an SQL AG .

    Quote from MS document Prerequisites, Restrictions, and Recommendations for Always On availability groups;

    >Each server instance must be running the same version of SQL Server to participate in an Always On Availability Group.

    If you do not want to use in place upgrade. Suggest you using backup databases on SQL server 2014 then restore the databases to SQL server 2019. In addition, SQL Server 2019 (15.x) supports upgrade from SQL Server 2014 (12.x) SP2 or later. Refer to Upgrades from Earlier Versions to SQL Server 2019 (15.x).


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

    0 comments No comments

  2. tibor_karaszi@hotmail.com 4,311 Reputation points
    2022-04-01T09:26:03.543+00:00

    It is supported to have different versions in an AG, but only during the rolling upgrade phase. Note that once you failed over to the new version, you can't fail back to the older version. See this: https://learn.microsoft.com/en-us/sql/database-engine/availability-groups/windows/upgrading-always-on-availability-group-replica-instances?view=sql-server-ver15

    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.