Considerations for SQL Server upgrades
Amazon RDS takes two DB snapshots during the upgrade process. The first DB snapshot is of the DB instance before any upgrade changes have been made. The second DB snapshot is taken after the upgrade finishes.
Note
Amazon RDS only takes DB snapshots if you have set the backup retention period for your DB instance to a number greater than 0. To change your backup retention period, see Modifying an Amazon RDS DB instance.
After an upgrade is completed, you can't revert to the previous version of the database engine. If you want to return to the previous version, restore from the DB snapshot that was taken before the upgrade to create a new DB instance.
During a minor or major version upgrade of SQL Server, the Free Storage Space and Disk Queue
Depth metrics will display -1
. After the upgrade is completed, both metrics will return to
normal.
Before you upgrade your SQL Server instance, review the following information.
Topics
Multi-AZ and in-memory optimization considerations
Amazon RDS supports Multi-AZ deployments for DB instances running Microsoft SQL Server by using SQL Server Database Mirroring (DBM) or Always On Availability Groups (AGs). For more information, see Multi-AZ deployments for Amazon RDS for Microsoft SQL Server.
If your DB instance is in a Multi-AZ deployment, both the primary and standby instances are upgraded. Amazon RDS does rolling upgrades. You have an outage only for the duration of a failover.
SQL Server 2016 through 2019 Enterprise Edition support in-memory optimization.
Read replica considerations
During a database version upgrade, Amazon RDS upgrades all of your read replicas along with the primary DB instance. Amazon RDS does not support database version upgrades on the read replicas separately. For more information on read replicas, see Working with read replicas for Microsoft SQL Server in Amazon RDS.
When you perform a database version upgrade of the primary DB instance, all its read-replicas are also automatically upgraded. Amazon RDS will upgrade all of the read replicas simultaneously before upgrading the primary DB instance. Read replicas may not be available until the database version upgrade on the primary DB instance is complete.
Option group considerations
If your DB instance uses a custom DB option group, in some cases Amazon RDS can't automatically assign your DB instance a new option group. For example, when you upgrade to a new major version, you must specify a new option group. We recommend that you create a new option group, and add the same options to it as your existing custom option group.
For more information, see Creating an option group or Copying an option group.
Parameter group considerations
If your DB instance uses a custom DB parameter group:
-
Amazon RDS automatically reboots the DB instance after an upgrade.
-
In some cases, RDS can't automatically assign a new parameter group to your DB instance.
For example, when you upgrade to a new major version, you must specify a new parameter group. We recommend that you create a new parameter group, and configure the parameters as in your existing custom parameter group.
For more information, see Creating a DB parameter group in Amazon RDS or Copying a DB parameter group in Amazon RDS.