Azure SQL Database vs SQL Server on Azure Virtual Machines (2024)

Introduction

There are two main options in Azure to handle SQL databases:

  • Azure SQL Database.
  • SQL Server on Azure VM.

In this chapter, we will talk about the advantages and disadvantages of each option.

Azure SQL Database vs SQL Server on Azure Virtual Machines (1)

The Cloud options

The first option is a single Database in the Cloud that can be administered using the Azure Portal or other tools like SQL Server Management Studio (SSMS), PowerShell or third party tools. For more information about installing and connecting to an Azure SQL Database, refer to our article Microsoft Azure, our first steps to migrate data.

The second option is a Virtual Machine (VM) in Azure. It is like a local SQL Server, but it is a Virtual Machine stored in the Cloud and that is usually controlled using the RDP client. This option is very easy to install and Administer is you already have SQL Server Experience. For more information about VM machines refer to our article How to migrate your database to an Azure Virtual Machine.

Getting started

Prices

First, let’s talk about prices. This article was made on February 2016. It is possible that the prices will change over the time, but it is a good start point.

Let’s check a table with some prices (for a complete table of prices review the references).

SQL Server on Azure VMAzure SQL Database
1 Cores, 24 USD per month, Web Edition 2 GB Database, 5 DTUs, 5 USD per month.
16 Cores, 95 USD per month, Web Edition. 250 GB Database, 50 DTUs, 75 USD per month.
16 Cores, 1190 USD per month, Standard Edition 500 GB Database, 250 DTUs, 930 USD per month.
16 Cores, 4464 USD per month, Enterprise Edition 1 TB Database, 1750 DTUs, 7000 USD per month.

As you can see, the prices depend on different components.

The cheapest option is a one CORE VM machine with SQL Server web edition. The price is 24 USD per month and 0.032 USD per hour.

By the other hand, the cheapest option for an Azure SQL databases is 5 USD per month.

In SQL Server on Azure VMs, the price depends on the number of Cores and the SQL Edition. The more cores, the more expensive it is. In Azure VM, you can have the SQL Enterprise Edition, SQL Standard Edition and SQL Web Edition. The Enterprise edition is the most expensive and it includes several features not included in the Standard or Web edition. The Web edition is the cheapest option. The Standard edition support maximum 16 cores and the Enterprise version can support any number of cores. The Standard edition is limited to 128 GB of memory and the Web edition 64 GB. The Enterprise edition has no limit.

There are several limitations of each SQL Edition. For a complete list of features supported by each SQL Server Edition, refer the Features Supported by the Editions of SQL Server.

In Azure SQL Database, the prices depend on the Database Size and the DTUs. The DTU is the Data Transaction Unit, which measures the number of transactions supported per second in stress conditions.

For more information about DTUs, read the SQL Azure Database Benchmark Overview.

To summarize the prices, we can say that we can get cheaper prices in SQL Azure Databases. If you just need to store the information of your app in a Database and you do not want to worry about the Database Administration, the SQL Azure Database is the best option.

We cannot forget that there is a new option for SQL Azure Databases named elastic database, which is in Preview version. This is a new feature to handle multiple Azure SQL Databases in a Pool to simplify the administration if several databases are required. We will explain this feature on detail in another article.

Which one is easier to learn?

The SQL Azure Database is easier to use and administer.

The VM Machine in Azure is as difficult as a local machine. You need to work on the OS Administration as well as the traditional DBA tasks.

By the other hand, the SQL Azure Database is a simple database. You do not need to worry about the Administration of the Database. If want to improve the performance, you just need to pay more and that is all.

Which one is more secure?

The VM Machine in Azure is more secure than the SQL Azure Database because you can configure and restrict the IPs that access to the VM Machines. The passwords can be protected using the OS security.

In SQL Azure Database, if you have the credentials you can basically stole all the information from any device by default. When you need to connect with other tools, it is secure and it requires certificates or other secure tools, but the Web Portal can be accessed anytime and anywhere.

Which one can be administered from any device?

What is amazing about Azure SQL Database is that you can create and administer your database from your iPhone, your Android or any other similar device. If you have a browser, you can create, delete or administer your database. The connection is a straightforward process.

The VM Machine in Azure can be accessed from any RDP (Remote Desktop Protocol) Client. It can be a Machine with the Windows OS installed (recommended), a Mac or any OS with RDP installed. However, configuring RDP in non-Window OSs can be an unpleasant experience.

What is the maximum database size supported by each option?

The maximum size supported in Azure SQL Database is 1 TB. In the virtual machines in Azure, the maximum size in VMs can be found in this link: Sizes for Virtual Machines.

Conclusion

In this article, we explained the advantages and disadvantages of each option. To resume, if you already have an infrastructure and a SQL team that can handle the VM machines in Azure, it is a good option the work with Virtual Machines.

The Azure SQL is the best option if you have a new application and you do not have many resources or time to administer a SQL Server Database and you have a low budget, this option is the best

  • Author
  • Recent Posts

Daniel Calbimonte

Daniel Calbimonte is a Microsoft Most Valuable Professional, Microsoft Certified Trainer and Microsoft Certified IT Professional for SQL Server. He is an accomplished SSIS author, teacher at IT Academies and has over 13 years of experience working with different databases.

He has worked for the government, oil companies, web sites, magazines and universities around the world. Daniel also regularly speaks at SQL Servers conferences and blogs. He writes SQL Server training materials for certification exams.

He also helps with translating SQLShack articles to Spanish

View all posts by Daniel Calbimonte

Latest posts by Daniel Calbimonte (see all)

  • PostgreSQL tutorial to create a user - November 12, 2023
  • PostgreSQL Tutorial for beginners - April 6, 2023
  • PSQL stored procedures overview and examples - February 14, 2023

Related posts:

  1. Using the Azure Portal to monitor your Azure Machines with SQL Server installed
  2. How to migrate your database to an Azure Virtual Machine
  3. Base de datos Azure SQL versus SQL Server en Máquinas Virtuales Azure
  4. How to use PowerShell to create a SQL Virtual Machine in Azure
  5. How to migrate MySQL tables to Microsoft Azure SQL database
Azure SQL Database vs SQL Server on Azure Virtual Machines (2024)

FAQs

What is the difference between Azure SQL Database and SQL Server on a VM? ›

Azure SQL Database doesn't provide users with any direct control over the underlying compute server. SQL Server on Azure VM provides users with full administrative control over the engine. Azure SQL Database guarantees 99.995% uptime SLA. SQL Server on Azure VM offers availability of up to 99.99%.

What is the difference between Azure SQL Database and SQL Server on Azure? ›

The Azure SQL Database option is the most modern solution from Microsoft for SQL databases, and it is available only through Microsoft Azure. Unlike the Azure SQL Server Managed Instance Option, in this implementation, you only have to manage the databases and some of the features in SQL Server like logins.

What is the difference between Azure SQL Database and SQL Server managed instance? ›

Azure SQL Managed Instance is also highly scalable and can scale up or down based on demand, but it has a higher maximum database size limit than Azure SQL Database. Pricing: Azure SQL Database is generally less expensive than Azure SQL Managed Instance, but the pricing depends on the specific requirements of the user.

What is the difference between SQL Server and SQL Database? ›

Type. SQL is a query language, while SQL Server is a database management system. SQL is a query language for working with a relational database, while SQL Server is proprietary software that performs SQL queries.

Which Azure VM is best for SQL Server? ›

Use memory optimized virtual machine sizes for the best performance of SQL Server workloads. The Edsv5 series, the M-, and the Mv2- series offer the optimal memory-to-vCore ratio required for OLTP workloads. The M series VMs offer the highest memory-to-vCore ratio in Azure.

Can I install SQL Server on Azure VM? ›

SQL Server on Azure Virtual Machines enables you to use full versions of SQL Server in the cloud without having to manage any on-premises hardware. SQL Server virtual machines (VMs) also simplify licensing costs when you pay as you go. Azure virtual machines run in many different geographic regions around the world.

What is the benefit of using an Azure SQL Database compared to using SQL Server on premises? ›

High Availability and Disaster Recovery: Azure SQL Database offers built-in high availability and automated backups to ensure data redundancy and protection against failures. It also provides options for disaster recovery across different geographical regions.

What is the difference between Azure SQL Server and Azure database for MySQL? ›

What is the difference between Azure SQL Database and Azure Database for MySQL? Azure Database for MySQL is based on the MySQL community edition and offers versions 5.6, 5.7, and 8.0. Whereas Azure SQL Database is powered by the SQL Server database engine (specifically the stable Enterprise Edition of SQL Server).

What are the disadvantages of Azure SQL? ›

No Extended stored procedures and table partitioning. No support for database mirroring and failover clustering. No point-in-time restore as in SSMS. Does not support Common Language Runtime (CLR) like views, stored procedures, triggers, and user-defined functions.

What is the difference between Azure SQL Database and Azure SQL data warehouse? ›

Here's one of the biggest differences between the two: SQL DW is specifically geared towards OLAP (Online Analytical Processing) AKA data warehouses, whereas SQL DB is geared towards OLTP (Online Transaction Processing).

Can I create multiple databases in an Azure SQL Database? ›

Azure SQL Database elastic pools are a simple, cost-effective solution for managing and scaling multiple databases with varying and unpredictable usage demands. The databases in an elastic pool are on a single server and share a set number of resources at a set price.

How do I migrate an Azure SQL Database to an Azure SQL managed instance? ›

Azure Data Studio
  1. Download and install Azure Data Studio and the Azure SQL migration extension for Azure Data Studio.
  2. Launch the Migrate to Azure SQL Migration wizard in the extension in Azure Data Studio.
  3. Select databases for assessment and view migration readiness or issues (if any).
Jun 27, 2024

What is the difference between database and server? ›

A database is an application that lets you store your data and hold it in a memory. A server can either be hardware- or software-based, and delivers specific functionality to users. For instance, it can be deployed for web hosting, email, applications, and more.

Is Azure SQL Database PaaS or SaaS? ›

Azure SQL Database is a relational database-as-a-service (DBaaS) hosted in Azure that falls into the industry category of Platform-as-a-Service (PaaS). Best for modern cloud applications that want to use the latest stable SQL Server features and have time constraints in development and marketing.

Is MySQL server a database? ›

Microsoft SQL Server is a relational database management system (RDBMS). Applications and tools connect to a SQL Server instance or database, and communicate using Transact-SQL (T-SQL).

What is the difference between SQL Server and Azure Data Warehouse? ›

SQL Server Data Warehouse exists on-premises as a feature of SQL Server. In Azure, it is a dedicated service that allows you to build a data warehouse that can store massive amounts of data, scale up and down, and is fully managed. As with Azure SQL Database, Azure SQL Data Warehouse is something that you just spin up.

What is the difference between Azure data Studio and SQL Server Management Studio? ›

Cross-Platform Development

Azure Data Studio runs on Windows, Linux, and macOS, making it a champion of flexibility. This extends to your developers as well as your users. Comparatively, SSMS is Windows only. So, if you use any operating system other than Windows, the choice is obvious.

Can I host SQL Server on Azure? ›

Provisioning a SQL Server VM to the dedicated host is no different than any other Azure virtual machine. You can do so using Azure PowerShell, the Azure portal, and the Azure CLI.

Top Articles
The Complete Beginner’s Guide to NFTs on Polygon
Mid-Level: Definition, process, and examples | JOIN
Joliet Patch Arrests Today
Cars & Trucks - By Owner near Kissimmee, FL - craigslist
Katmoie
Tj Nails Victoria Tx
Comcast Xfinity Outage in Kipton, Ohio
414-290-5379
Craigslist Dog Kennels For Sale
Purple Crip Strain Leafly
Help with Choosing Parts
How to Store Boiled Sweets
Fredericksburg Free Lance Star Obituaries
Tracking Your Shipments with Maher Terminal
Letter F Logos - 178+ Best Letter F Logo Ideas. Free Letter F Logo Maker. | 99designs
Q33 Bus Schedule Pdf
Kiddle Encyclopedia
Conan Exiles: Nahrung und Trinken finden und herstellen
Palm Springs Ca Craigslist
Traveling Merchants Tack Diablo 4
Aerocareusa Hmebillpay Com
Glover Park Community Garden
Engineering Beauties Chapter 1
Craigslistodessa
Silky Jet Water Flosser
What Individuals Need to Know When Raising Money for a Charitable Cause
Makemv Splunk
Pain Out Maxx Kratom
Delta Township Bsa
Cal State Fullerton Titan Online
Aes Salt Lake City Showdown
Hrconnect Kp Login
Combies Overlijden no. 02, Stempels: 2 teksten + 1 tag/label & Stansen: 3 tags/labels.
Rugged Gentleman Barber Shop Martinsburg Wv
Ff14 Sage Stat Priority
Kempsville Recreation Center Pool Schedule
Devotion Showtimes Near The Grand 16 - Pier Park
Aladtec Login Denver Health
Nobodyhome.tv Reddit
Lyca Shop Near Me
NHL training camps open with Swayman's status with the Bruins among the many questions
Google Flights Orlando
Indio Mall Eye Doctor
Bartow Qpublic
The Attleboro Sun Chronicle Obituaries
Post A Bid Monticello Mn
Kaamel Hasaun Wikipedia
Hello – Cornerstone Chapel
Secrets Exposed: How to Test for Mold Exposure in Your Blood!
Horseneck Beach State Reservation Water Temperature
Houston Primary Care Byron Ga
Arre St Wv Srj
Latest Posts
Article information

Author: Terence Hammes MD

Last Updated:

Views: 6229

Rating: 4.9 / 5 (69 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Terence Hammes MD

Birthday: 1992-04-11

Address: Suite 408 9446 Mercy Mews, West Roxie, CT 04904

Phone: +50312511349175

Job: Product Consulting Liaison

Hobby: Jogging, Motor sports, Nordic skating, Jigsaw puzzles, Bird watching, Nordic skating, Sculpting

Introduction: My name is Terence Hammes MD, I am a inexpensive, energetic, jolly, faithful, cheerful, proud, rich person who loves writing and wants to share my knowledge and understanding with you.