Manage Learn to apply best practices and optimize your operations.

SQL Server 2016 licensing tips to help you steer clear of trouble

SQL Server licensing is always complicated, and licensing for SQL Server 2016 adds new wrinkles. Expert Michael Otey provides guidance on licensing for different editions and situations.

Licensing of Microsoft products has always been complicated, and SQL Server 2016 is no exception. To make matters...

worse, it can be deployed in a number of different scenarios that can confuse licensing requirements even further. In this article, I'll guide you through the SQL Server 2016 licensing maze and clear up some of the biggest areas of confusion, including how to handle licensing for virtual machines and for high availability features such as AlwaysOn Failover Cluster Instances and AlwaysOn Availability Groups.

Before jumping into the more complicated areas of SQL Server 2016 licensing, you need to have a basic understanding of Microsoft's licensing models. Depending on the edition of the database you're using, SQL Server 2016 offers licensing by processor cores or Microsoft's Server + CAL model, which includes the purchase of client access licenses.

CALs allow clients to connect to a server. With Server + CAL licensing, you buy one license for the entire database server, but need to have a CAL for every user or device that accesses the server. This licensing model is typically best when you know the number of clients that will be connecting to the SQL Server system. Core licensing, on the other hand, is based on the number of processor cores or virtual CPUs in the system. It's designed for large installations with heavy usage and internet deployments in which the number of users and devices can't be predicted.  

SQL Server 2016 Enterprise edition, which provides the complete SQL Server 2016 feature set, supports core-based licensing only. It has a retail price of $14,256 per core in two-core packs, and you need to license a minimum of four cores; also, if you're using the Enterprise edition on a physical server, you need to license all of the cores in that system.

SQL Server 2016 Standard edition has options for both core-based and Server + CAL licensing. The former is priced at $3,717 per core in packs of two, while the latter has a list price of $931 per server and $209 per CAL. The Standard edition's database engine is limited to 128 GB of RAM and the lesser of 4 sockets or 24 cores -- 20 if you select Server + CAL licensing. It also lacks many of the scalability and availability features found in the Enterprise edition.

SQL Server 2016 Developer edition is free as part of the Visual Studio Dev Essentials program; it has all the features of the Enterprise edition, but is only licensed for development uses. Also free are the three editions of SQL Server 2016 Express Edition, which can be used for production workloads, but are limited to a single CPU and a database size of 10 GB.

SQL Server licensing and virtualization

When it comes to SQL Server 2016 licensing, virtualization is one of the more confusing areas. With core-based licensing, one virtual CPU (vCPU) is equivalent to one core license. For Server + CAL licensing, one virtual machine (VM) is equivalent to one server license. For instance, if you're using SQL Server 2016 Standard edition in a virtualized environment with the Server + CAL licensing model, you have to license per VM, and each VM requires a separate server license regardless of how many vCPUs are in use within the VMs. Plus, of course, all users and devices that connect to the virtual servers need CALs.

But there are additional rules to keep in mind. If you're running SQL Server 2016 Enterprise edition in a virtual environment, you have the choice between licensing individual cores and licensing for maximum virtualization (see Figure 1). If you license all of the cores in the virtualization host and cover the licenses with Microsoft's Software Assurance maintenance and update program, you can run as many virtual SQL Server instances as you have core licenses purchased. If you want to run more, you'll need to purchase more two-pack licenses. 

SQL Server 2016 virtualization licensing examples
Figure 1: SQL Server 2016 virtualization licensing examples.

Passive vs. active SQL Server licensing

Another common question about SQL Server 2016 licensing comes up in high availability and disaster recovery implementations of a specific type. In these implementations, one of the servers is actively running a workload and another is essentially passive, waiting to take over the workload in the event that the primary server fails. The question is: In what circumstances do you need to license the passive server, and when can you get by without a license for that system?

First, with SQL Server 2016, passive failover scenarios require the primary server to be licensed with Software Assurance. If the secondary server is truly passive -- in other words, it's only used in failover situations and not for anything else -- then you don't need to purchase an additional SQL Server license for that server.

However, if you're using that server to run any other sort of additional workload, you do need to license it -- for instance, if you're using AlwaysOn Availability Groups to protect the primary server and the secondary server is used for read-only reporting or backups.

Windows Server licensing issues

In addition to SQL Server 2016 licensing, you need to consider licensing for the Windows Server operating system. SQL Server is most commonly run on either the Standard or Datacenter edition of Windows Server 2012 R2. For each one, a single Windows Server 2012 R2 license covers up to two physical processors. The two editions have the same features and are differentiated only by virtualization rights.

The Standard edition's license is designed for light virtualization usage scenarios: It entitles you to run up to two Virtual Operating System Environments (VOSEs) with no additional licensing costs. If you need more Windows Server virtual machines, you have to purchase additional Standard edition licenses.

In contrast, the license for Windows Server 2012 R2 Datacenter edition enables heavy virtualization usage, entitling you to run an unlimited number of VOSEs. However, the total number of physical processors used by those VOSEs can't exceed the number of software licenses assigned to that server.

Next Steps

Cut licensing costs using SQL Server containers

SQL Server 2016 improves and revitalizes in-memory OLTP

Test your knowledge of SQL Server 2016's new features

This was last published in August 2016

Dig Deeper on SQL Server Database Compliance

PRO+

Content

Find more PRO+ content and other member only offers, here.

Join the conversation

1 comment

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

What aspect of SQL Server 2016 license management is the biggest concern for you and why?
Cancel

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close