SQL Server 2022 Licensing in Virtual Environments: Minimum Cores, VMs and Support until 2033
Key takeaways
- When licensing a single VM, the assigned vCPUs count, with a minimum of four core licences per VM, sold in 2-core packs.
- Rights for per-VM licensing, unlimited virtualisation and free passive failover nodes are tied to Software Assurance or subscriptions; used perpetual licences do not carry them.
- SQL Server 2022 is in extended support until 11 January 2033 and, through downgrade rights, generally also covers SQL Server 2019.
At first glance, SQL Server 2022 licensing looks just like that of its predecessors: Standard and Enterprise, Server+CAL or per core. It only gets interesting when the database server does not run on bare metal but as a virtual machine on a Hyper-V or VMware host. That is the norm today, and it is exactly where most of the licensing gaps arise that become expensive in an audit.
This guide therefore focuses on virtualisation: how virtual cores are counted, what happens with small VMs, when it pays to license the whole host, and what role Software Assurance and the support lifecycle play. We covered the fundamental question of Server+CAL versus the core model, as well as the choice of edition, in detail in our article on the SQL Server licence.
Why SQL Server 2022 is the default for new projects
SQL Server 2022 is in extended support until 11 January 2033. Anyone building a database environment today therefore gets a good six years of security updates, longer than with any other version currently in widespread use. For comparison: SQL Server 2019 ends on 8 January 2030, SQL Server 2017 as early as 12 October 2027, and SQL Server 2016 has been without support since 14 July 2026.
For purchasing, this means that a SQL Server 2022 licence generally also covers older versions through downgrade rights, but not the other way round. Even if your line-of-business application still requires 2019 today, a 2022 licence is usually the future-proof choice. Check the details in the Microsoft Product Terms or in our article on downgrade rights.
SQL Server 2022 licensing per virtual machine
When a single VM is licensed, it is not the physical cores of the host that count but the virtual cores (vCPUs) assigned to the VM. A minimum of four core licences per VM applies. Licences continue to be sold in 2-core packs.
This has practical consequences that you should keep in mind when sizing your VMs:
- In licensing terms, a VM with two vCPUs costs exactly as much as one with four vCPUs.
- A VM with six vCPUs needs three 2-core packs; one with eight vCPUs needs four.
- Anyone who assigns vCPUs generously "just to be safe" pays for it directly in licences.
There is also a special feature that you should definitely clarify before buying. With SQL Server 2022, Microsoft attached conditions to the right to license individual virtual machines; to the best of our knowledge, in particular Software Assurance or subscription licences. Use the current Product Terms to check whether pure perpetual licences without Software Assurance may be used per VM in your scenario, or whether licensing has to be done via the physical host. This question largely determines how many used core licences you need.
Licensing via the physical host
The alternative is to license all physical cores of the host. Here, too, the minimum of four cores per physical processor applies. How many virtual instances this option covers depends on the edition and on Software Assurance. Unlimited virtualisation with Enterprise is tied to Software Assurance or to subscription licences. Pure perpetual licences, as traded on the used market, are subject to narrower rules, which you should check against the Product Terms before planning.
In practice, the host option proves useful mainly in two cases: when many SQL VMs run on one host and the total number of vCPUs is well above the number of physical cores, and when VMs are frequently moved between hosts. For a single database server in a large cluster, on the other hand, it is almost always too expensive.
Comparing the options
| Scenario | What is counted | Minimum | Typical use | What to watch |
|---|---|---|---|---|
| Physical server, no hypervisor | All physical cores | 4 per processor | Dedicated ERP database server | New hardware with more cores |
| Single VM | Assigned vCPUs | 4 per VM | One or two SQL VMs in a cluster | Check conditions for perpetual licences |
| Entire host | All physical cores of the host | 4 per processor | Many SQL VMs on one host | How many VMs are covered depends on edition and SA |
| Server+CAL in a VM | One server licence per VM plus CALs | no core count | Small internal applications, Standard only | CAL version must be 2022 |
High availability and passive instances
Many companies do not run SQL Server on its own but with a second node for failover. Whether this passive node needs to be licensed as well is one of the most important cost questions in SQL Server 2022 licensing. Microsoft ties the rights to free passive failover instances to Software Assurance.
For buyers of used perpetual licences without Software Assurance, this means: if in doubt, plan the failover node as an instance that must be fully licensed. In the worst case, this doubles your licence requirement. Work through both options, that is, perpetual licences for both nodes versus an agreement with Software Assurance, and compare the totals over the planned period of use.
Sample calculation for a virtualised environment
Once again: this is a sample calculation with assumed values, with no claim to reflect market prices. A company runs a Hyper-V cluster with two hosts of 16 physical cores each. Three SQL VMs with SQL Server Standard run on it: ERP with 8 vCPUs, document management with 4 vCPUs and time recording with 2 vCPUs.
Counted per VM, this gives 8 + 4 + 4 = 16 core licences, because the small VM is raised to the minimum of four. That is eight 2-core packs. At an assumed 3,500 units per pack, the cost comes to 28,000 units.
If, instead, both hosts were fully licensed, that would be 32 cores, i.e. 16 packs and 56,000 units. Per-VM licensing is clearly cheaper here, but it requires that it is permitted for the licences used. That is precisely why checking the Product Terms comes before the purchase and not after it.
A third option would be to switch time recording to Server+CAL if only a few administrative staff access it. Such mixed models are permitted as long as each instance is correctly licensed in its own right.
SQL Server 2022 licensing with used licences
Used core licences for SQL Server 2022 and 2019 are available on the market because companies move databases to cloud services or consolidate data centres. As a rule, they come from volume licensing agreements and are pure perpetual components; the previous owner's Software Assurance does not transfer with them. Our article on used volume licences explains where volume licences can come from and what that means.
For virtualised environments this is crucial: rights that exist only with Software Assurance do not come with used licences. Plan your architecture so that it works with the rights of the perpetual licence, or combine deliberately. A common approach is to equip stable production systems with used perpetual licences and to use subscription or SA models only where flexibility is genuinely needed.
Frequently asked questions about SQL Server 2022 licensing
Do hyper-threading cores count when licensing a VM?
When licensing a VM, the virtual cores assigned to the VM count, regardless of how they are mapped physically. What matters is the configuration of the VM, not the hardware underneath.
May I move a SQL VM to another host via live migration?
Technically yes, but in licensing terms there are restrictions on how often licences may be reassigned between servers. Extended mobility rights are tied to Software Assurance. Clarify this above all if you use automatic load balancing in the cluster.
Do I need new CALs for SQL Server 2022 if I have 2019 CALs?
Yes. With Server+CAL, the CALs must be at least version 2022. Existing 2019 CALs are not sufficient for access to a 2022 instance.
Is it still worth buying SQL Server 2019?
Only in exceptional cases, for example if an application is approved exclusively for 2019 and will be replaced by 2029 at the latest. Otherwise, a 2022 licence offers three more years of support and generally covers 2019 through downgrade rights.
Do the same rules apply to containers as to VMs?
Containers are subject to principles comparable to those for virtual operating system environments; the details are set out in the Product Terms. Check them in each individual case before licensing container platforms for production use.
Would you like to equip your virtual SQL environment with used core licences? Write to us: HY Gebrauchtsoftware will review your scenario and propose a suitable mix.
Tell us what you need.
Product, quantity, purpose – that is all we need to start. You will receive a quote stating origin and support period.
Send enquiry