Thursday, January 15, 2026

Implement excessive availability in Amazon RDS for SQL Server Net Version utilizing block-level replication


Amazon Relational Database Service (Amazon RDS) for SQL Server has enhanced SQL Server 2022 Net Version by introducing excessive availability via block-level replication in Multi-AZ deployments. Beforehand, excessive availability options have been restricted to Enterprise and Customary Editions via applied sciences like All the time On availability teams or Database Mirroring. This new functionality brings enterprise-grade availability to SQL Server Net Version, which is designed for Net hosters and Net value-added suppliers (VAPs) to host public and Web-accessible internet pages, web sites, internet functions, and internet providers.

With this launch, you may shortly arrange and keep extremely accessible databases whereas considerably decreasing operational overhead. On this submit, we talk about the advantages of block-level replication and the right way to get began. For extra info, see Licensing Microsoft SQL Server on Amazon RDS.

Resolution overview

Multi-AZ deployments in Amazon RDS obtain excessive availability by sustaining a synchronized standby database occasion. Whereas Amazon RDS for SQL Server has traditionally supported varied replication applied sciences, this new resolution particularly leverages block-level replication to synchronize storage between major and standby situations. This method offers a extra streamlined and environment friendly technique for sustaining database redundancy.

Supported variations for Multi-AZ on SQL Net version:

  • SQL Server 2022: Net Version 16.00.4215.2.v1 and above

Be aware that for Microsoft SQL Server Net Version, solely new DB situations created or upgraded to 16.00.4215.2.v1 or increased variations are eligible for Multi-AZ deployments utilizing block stage replication.

Check with the RDS documentation to remain up to date with the newest model help.

In a Multi-AZ deployment, Amazon RDS routinely provisions and maintains a synchronous standby reproduction in a distinct Availability Zone. The time it takes for a failover to finish will depend on the database exercise and different circumstances on the time the first DB occasion grew to become unavailable. Failover occasions are sometimes 60 –120 seconds. Nevertheless, giant transactions or a prolonged restoration course of can enhance failover time.

The first occasion’s information is synchronously replicated on the block stage to the standby occasion, offering full information redundancy together with server-level objects and configurations. Throughout an unplanned service disruption, Amazon RDS routinely fails over to the standby occasion. Your database operations can resume with minimal interruption as a result of the identical DNS endpoint is maintained all through the failover course of, assuaging the necessity to reconfigure utility connection strings.

You possibly can create a brand new RDS SQL Server Net Version database occasion with Multi-AZ choice or modify an present Net Version database occasion from Single-AZ to Multi-AZ, by utilizing the AWS Administration Console, AWS Command Line Interface (AWS CLI), or AWS SDKs

Stipulations

To get began, you could have the next sources:

This resolution requires new AWS sources and can incur prices. Evaluate AWS Pricing earlier than implementation.

We strongly advocate testing this setup in a non-production surroundings and performing full validation earlier than manufacturing deployment.

Create Multi-AZ DB occasion

Earlier than you create your DB occasion, confirm the AWS Area and model availability to ensure the mix of SQL Server editions and variations are enabled for you within the Area the place you need to host the RDS occasion.

To create your Multi-AZ Amazon RDS occasion, full the next steps:

  1. On the Amazon RDS console, select Databases within the navigation pane.
  2. Select Create database.
  3. Select Customary create.
  4. Configure the essential settings:
  5. For Engine kind, select Microsoft SQL Server.
  6. For Database administration kind, select Amazon RDS.
  7. For Version, select SQL Server Net Version.
  8. For Model, select 16.00.4215.2.v1
  9. For Occasion identifier, enter a reputation on your occasion.
  10. Below Settings, configure the next:
  11. Enter your major person identify and password.
  12. Specify the DB occasion class as wanted.
  13. Set the storage kind and measurement.
  14. Below Availability & sturdiness, for Multi-AZ deployment, choose Sure (Block Stage Replication).
  15. Below Configure connectivity, select your digital personal cloud (VPC) and subnet group.
  16. For Public entry, choose No.
  17. For VPC safety group, select present and select the safety group you created.
  18. Select Create database.

Look forward to Amazon RDS to provision the Multi-AZ Amazon RDS occasion.

Alternatively, you may deploy a Multi-AZ occasion utilizing the AWS CLI.Use the next command to create an RDS for SQL Server Net version occasion utilizing the AWS CLI on Home windows:

aws rds create-db-instance ^
--db-instance-identifier sqlserver-web-demo ^
--engine sqlserver-web ^
--engine-version 16.00.4215.2.v1 ^
--license-model license-included ^
--master-username grasp ^
--master-user-password password ^
--db-instance-class db.m5d.4xlarge 
--allocated-storage 16000 ^
--storage-type io2 
--iops 64000 ^
--multi-az ^
--storage-encrypted ^
--region us-east-1

Use the next command to create an RDS for SQL Server Net version occasion utilizing the AWS CLI on MacOS/Linux:

aws rds create-db-instance 
 --db-instance-identifier sqlserver-web-demo 
--engine sqlserver-web 
--engine-version 16.00.4215.2.v1 
--license-model license-included 
--master-username grasp 
--master-user-password password 
--db-instance-class db.m5d.4xlarge 
--allocated-storage 16000 
--storage-type io2 
--iops 64000 
--multi-az 
--storage-encrypted 
--region us-east-1

Join and confirm configuration

Full the next steps to confirm your configuration:

  1. Hook up with your Amazon EC2 occasion utilizing Session Supervisor
  2. Launch SSMS and join with the next info:
    1. Server identify: Your Amazon RDS for SQL Server occasion endpoint
    2. Authentication: SQL Server authentication
    3. Login credentials: As specified throughout creation
  3. Open a brand new question window and run the next question to create a database and desk:
    USE grasp;
    GO
    
    CREATE DATABASE MAZDB;
    GO
    
    USE MAZDB;
    GO
    
    CREATE TABLE dbo.check(
    ID int id(1,1) major key,
    [Desc] char(100)
    )
    GO
    
    INSERT INTO dbo.check VALUES('RDS MAZ')
    GO 50
    
    SELECT COUNT (*) FROM dbo.check;
    GO 

You will note the database being created and information inserted into the desk with 50 data.

Carry out a failover

You possibly can check the failover performance utilizing the console. The failover course of promotes the secondary node as the brand new major occasion. You’ll discover the change of the first Availability Zone as properly. Full the next steps:

  1. On the Amazon RDS console, choose your occasion.
  2. On the Actions menu, select Reboot.
  3. Select Reboot with failover.
  4. Verify the reboot.

The reboot with failover operation will trigger a short downtime. Schedule this throughout off-peak hours to reduce impression in your functions.

Alternatively, you may provoke a failover utilizing the AWS CLI:

aws rds reboot-db-instance 
--db-instance-identifier sqlserver-web-demo 
--region us-east-1 
--force-failover

Confirm the post-failover standing

After you full the failover course of, you may connect with the brand new major occasion to confirm the database that was created earlier is within the accessible state and you’ll question it. Full the next steps:

  1. Distant Desktop to your Home windows EC2 occasion (if the earlier connection closed).
  2. Within the search window, seek for SSMS, select Join, and select Database Engine.
  3. For Server identify, enter the RDS for SQL Server endpoint.
  4. Enter the login and password particulars you specified while you created the RDS for SQL Server occasion.
  5. Select Join.
  6. Open a brand new question window and confirm information accessibility:
    USE MAZDB;
    GO
    SELECT COUNT (*) FROM dbo.check;
    GO

It is best to see 50 rows returned.

It takes a couple of minutes for the console to mirror the brand new Availability Zone.

Limitations

For extra details about the restrictions of this resolution, discuss with Limitations for Microsoft SQL Server DB situations.

Clear up

To keep away from ongoing prices, delete the sources you created as a part of this submit:

  1. Delete your RDS occasion.
  2. Delete your EC2 occasion.

Conclusion

On this submit, we confirmed the right way to arrange a Multi-AZ RDS for SQL Server Net Version occasion and validate its excessive availability capabilities via failover testing.

This new function simplifies the method of implementing excessive availability on your databases whereas decreasing operational overhead. By minimizing the necessity for handbook configuration and upkeep, you may higher meet your corporation continuity and utility availability necessities.

We encourage you to implement this resolution in your AWS account. In case you have questions or need to share your expertise, Depart a remark.


In regards to the Authors

Ram Yellapragada

Ram Yellapragada

Ram is a Senior Database Engineer within the Amazon RDS staff. He has been with AWS for over 5 years. He works on RDS product improvement and amongst different issues, is concentrated on Multi-AZ and Sturdiness options. Previous to this, he has in depth expertise in consulting with clients in varied verticals to architect, develop and deploy complicated database options in AWS cloud.

Nirupam Datta

Nirupam Datta

Nirupam is a Sr. Technical Account Supervisor at AWS. He has been with AWS for over 5 years. With over 13 years of expertise in database engineering and infra-architecture, Nirupam can be a topic knowledgeable within the Amazon RDS core techniques and Amazon RDS for SQL Server. He offers technical help to clients, guiding them emigrate, optimize, and navigate their journey within the AWS Cloud.

Shirin Ali

Shirin Ali

Shirin is a Senior Database Specialist Options Architect at Amazon Net Companies. She helps clients architect and migrate their database options to AWS. Previous to becoming a member of AWS, she supported manufacturing and mission-critical database implementation throughout vitality and training trade segments.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles