Setting Up Aurora SQL Server Integration: Made Easy 101

on Amazon Aurora, Data Integration, SQL Server • April 28th, 2022 • Write for Hevo

We, as individual users or an organization, choose Relational Databases for our software system or application as per the requirements. What if the user wants to migrate their data from self-managed, open-source, and commercial Databases to fully managed Databases of the same engine? 

There is the option of a fully-managed Amazon Relational Database Service (RDS) or Amazon Aurora relational database available in the market. Users can migrate from one relational database to AWS databases of the same engine using third-party tools or via AWS Database Migration Service (AWS DMS) and AWS Schema Conversion Tool (AWS SCT). We will be using AWS Database Migration Service (AWS DMS) to connect from the most widely used commercial and open-source databases such as Microsoft SQL Server to Amazon Aurora

In this article, you will learn steps to connect Microsoft SQL Server to Amazon Aurora. The source(SQL Server) and target(Aurora) databases must be on AWS services. So, read along to understand more about Amazon Aurora SQL Server Integration.

Table of Contents

What is SQL Server?

Aurora SQL Server - SQL Server Logo
Image Source

SQL Server is a popular Relational Database Management System(RDBMS). Microsoft develops SQL Server, so it is also called Microsoft SQL Server or sometimes MSSQL. SQL Server was initially released on April 24, 1989, and it is written in programming languages like C and C++. SQL Server is extensively used for Windows and launched for Linux systems in 2016. 

SQL Server is a versatile database server used to store data and retrieve data by various software applications from local systems and different machines on the network. SQL Server is a relational database system storing data in tabular format, and the relationship between tables is maintained. 

For smooth and reliable database transactions, SQL Server follows the principle of ACID properties: Atomicity, Consistency, Isolation, and Durability.

To install SQL Server click here. Further in this article, you will learn about Amazon Aurora SQL Server integration.

Understanding SQL Server Architecture

The architecture of SQL Server is illustrated in the below image:

Aurora SQL Server - SQL Server Architecture
Image Source

There are two core components of SQL Server:

1) SQL Server Database Engine

Database Engine is the core component of SQL Server which controls data storage, data processing, and data security. It consists of a relational engine that manages SQL commands, queries, and database file storage. It also creates and executes stored procedures, views, triggers, and other database objects.

2) SQLOS

SQLOS is the SQL Server Operating System sitting beneath the SQL Server database engine. SQLOS handles lower-level functions such as job scheduling, memory, I/O management, and data locking to avoid conflict.

A network interface layer sits above the Database Engine and uses external protocols to facilitate request and response interactions with database servers.

What is Amazon Aurora?

Aurora SQL Server - Amazon Aurora Logo
Image Source

Amazon Aurora is a fully managed Relational Database Engine developed by Amazon Web Services in October 2014. Aurora provides fully managed, built-in security, serverless compute with a high-performance storage sub-system, and a less than one-minute cross-region disaster recovery feature. It is a highly scalable and durable database built for cloud-based commercial purposes at 1/10th of the cost.

Aurora is super compatible with MySQL and PostgreSQL. Even the code the user uses with MySQL and PostgreSQL works with Amazon Aurora. Aurora can be easily migrated to and from MySQL and PostgreSQL. It can deliver up to five times the throughput of MySQL and up to three times the throughput of PostgreSQL with some workloads without impacting most of the existing applications.

Aurora automatically grows the underlying storage as per requirement. Aurora handles the most challenging aspects of database configuration of automation and standardization of clustering and replication.

Replicate Data in Minutes Using Hevo’s No-Code Data Pipeline

Aurora SQL Server - SQL Server Source Hevo
Image Source

Hevo Data, a Fully-managed Data Pipeline platform, can help you automate, simplify & enrich your data replication process in a few clicks. With Hevo’s wide variety of connectors and blazing-fast Data Pipelines, you can extract & load data from 100+ Data Sources such as SQL Server, Amazon Aurora straight into your Data Warehouse or any Databases. To further streamline and prepare your data for analysis, you can process and enrich raw granular data using Hevo’s robust & built-in Transformation Layer without writing a single line of code!

GET STARTED WITH HEVO FOR FREE

Experience an entirely automated hassle-free SQL Server and Aurora ETL Pipelines. Try our 14-day full access free trial  to experience an entirely automated hassle-free Data Replication!

Understanding Amazon Aurora Architecture

Aurora SQL Server - Amazon Aurora Architecture
Image Source

Key points of Amazon Aurora Architecture are

  • Amazon Aurora decouples storage and query processing.
  • Aurora focuses on reusing its components, making it work like query execution, transaction, and recovery efficient and faster. 
  • Amazon Aurora ensures safe backups with virtual storage and various data clones creation.
  • Aurora prioritizes data access restrictions and stores changelog on the remote disk.
  • Aurora uses a primary-replica setup.

Steps to Set Up Amazon Aurora SQL Server Integration

Aurora SQL Server - SQL Server to Amazon Aurora
Image Source: Self

This section will discuss steps to set up Amazon Aurora SQL Server Integration.

Prerequisites

  • Configure Your Microsoft SQL Server Source Database as per the instructions mentioned in the link.
  • Configure Your Aurora MySQL Target Database as per the instructions mentioned in the link.

So, let’s get started with the Amazon Aurora SQL Server Integration.

Step 1: Install the JDBC Drivers and AWS Schema Conversion Tool 

The first step is to install JDBC drivers for Microsoft SQL Server and Amazon Aurora MySQL and the AWS Schema Conversion Tool (AWS SCT) on your local computer. Do the following:

  • Download the JDBC driver for Microsoft SQL Server (mssql-jdbc-7.2.2.jre11.jar) from the link.
  • Download the JDBC driver for Aurora MySQL(mysql-connector-java-8.0.29.tar.gz) from here as Amazon Aurora MySQL uses the MySQL driver.
  • Download and install AWS SCT based on your operating system.
  • Set up AWS SCT. using the below steps:
    • Start AWS SCT, choose Settings, and then Global Settings.
    • In Global Settings, choose Drivers, and then Browse for Microsoft SQL Server Driver Path.
    • Browse the JDBC driver for MySQL driver path, and choose OK.
Aurora SQL Server - Configure Global Settings
Image Source

What Makes Hevo’s Data Integration Process Unique

Loading data from SQL Server can be a mammoth task without the right set of tools. Hevo’s automated platform empowers you with everything you need to have a smooth Data Collection, Processing, and Transforming experience. Our platform has the following in store for you! Check out Load Data from MS SQL Server to any Data Warehouse Without Writing any Code | Hevo.

  • Data Transformations: Best-in-class & Native Support for Complex Data Transformation at fingertips. Code & No-code Fexibilty designed for everyone. You can code to transform your data using Python.
  • Smooth Schema Mapping: Fully-managed Automated Schema Management for incoming data with the desired destination.
  • Built to Scale: Exceptional Horizontal Scalability with Minimal Latency for Modern-data Needs.
  • Built-in Connectors: Support for 100+ Data Sources, including Databases such SQL Server, Amazon Aurora, SaaS Platforms, Files & More. Native Webhooks & REST API Connector available for Custom Sources.
  • Blazing-fast Setup: Straightforward interface for new customers to work on, with minimal setup time.
  • Exceptional Security: A Fault-tolerant Architecture that ensures Zero Data Loss.
  • Live Support: The Hevo team is available round the clock to extend exceptional support to its customers through chat, email, and support calls.
SIGN UP HERE FOR A 14-DAY FREE TRIAL!

Step 2: Use the AWS SCT to Connect the SQL Server to Aurora MySQL.

Launch the AWS Schema Conversion Tool(SCT) to connect SQL Server to Aurora MySQL. 

  • In the AWS SCT, choose File, then choose New Project. Create a new project named Connect SQL Server to Aurora MySQL, specify the project folder’s location, and click OK. 
  • Choose to add a source database to your project, choose Microsoft SQL Server, and then choose Next.
  • Add the below information to connect to the Source Microsoft SQL Server database and choose Test Connection.
ParameterDescription
Connection nameEnter Microsoft SQL Server in this field.
Server nameEnter the server name.
Server portEnter the SQL Server port number. The default is 1433.
Instance nameEnter the SQL Server database instance name.
User nameEnter the SQL Server admin user name.
PasswordEnter the password for the admin user.
Aurora SQL Server - Configure Connection Settings
Image Source
  • Once the test connection is made, click OK to close the alert box and choose Connect for connection with the Microsoft SQL Server database instance. The left panel of AWS SCT displayed the Microsoft SQL Server database instance structure.
  • Click on Add target and choose Amazon Aurora (MySQL compatible) to add it as a target database to your project and then click Next
  • Add the below information to connect to the target Amazon Aurora database and choose Test Connection.
ParameterDescription
Connection nameEnter Aurora MySQL in the tree in the right panel.
Server nameEnter the server name.
Server portEnter the SQL Server port number. The default is 3306.
User nameEnter the Aurora MySQL admin user name.
PasswordEnter the password for the admin user.
  • Choose OK to close the alert box and then click on Connect connect to the Aurora MySQL database instance.
  • Select the source schema in the left panel tree of AWS SCT. In the right panel tree, select your target Aurora MySQL database. And then choose to Create mapping.
  • Successful mapping means a successful connection from Microsoft SQL Server to Amazon Aurora.

After a successful connection, we can migrate the SQL Server schema to Aurora and can generate reports also.

Conclusion

In this article, you learned about the Aurora SQL Server Integration. You also understood the detailed steps to set up Aurora SQL Server Integration.

Amazon Web services offer vast, flexible, and fully-managed database services. And also provide an option for schema and data migration to Amazon Aurora. Microsoft SQL Server can successfully connect to the Amazon Aurora database following the above steps.

Similarly, other relational databases can be connected to Amazon Aurora and smoothly migrate their schema and data to Aurora. Read Working with Amazon Aurora MySQL Simplified or Power BI Aurora Integration: 2 Easy Methods to explore more.

Hevo Data is a No-Code Data Pipeline that offers a faster way to move data from 100+ Data Sources including Amazon Aurora, SQL Server, 40+ Free Sources, into your Data Warehouse to be visualized in a BI tool. Hevo is fully automated and hence does not require you to code.

VISIT OUR WEBSITE TO EXPLORE HEVO

Want to take Hevo for a spin?

SIGN UP and experience the feature-rich Hevo suite first hand. You can also have a look at the unbeatable pricing that will help you choose the right plan for your business needs.

Share your experience with Amazon Aurora SQL Server Integration in the comments section below!

No-Code Data Pipeline For SQL Server