Cost / right-sizingERP software company, anonymized × red9CS-0013
Tuned an over-provisioned ERP platform from 32 cores to 8, and freed six figures in SQL Server licensing
The problem. An ERP software company ran production on a 16-core Azure VM in an Always On Availability Group, two 16-core servers, 32 cores in all. They had real performance and reliability problems, and the software vendor's advice was to buy more power. The actual causes were configuration, missing maintenance, and inefficient queries, not a lack of hardware.
What we did. We ran a SQL Server assessment, then two tuning rounds. Round 1 fixed the parallelism, memory, and tempdb configuration and added the missing maintenance. Round 2 tuned the heaviest queries and migrated to SQL Server 2022 for the modern optimizer. With the workload tuned, the same production load ran on far fewer cores.
Red9 · Performance Impact
SQL Server licensing freed
$180,000
Value of the SQL Server Enterprise core licenses released after tuning cut the workload from 32 cores to 8 across the HA pair, plus a smaller ongoing Azure compute bill.
Cores required
32 → 8
Same workload, one quarter of the cores, after two tuning rounds. The vendor had recommended more hardware.
Hardware footprint75% smallerper server, 16 cores down to 4
How we calculate this. Tuning cut each server from 16 cores to 4, and 32 to 8 across the Always On pair. That releases 12 two-core SQL Server Enterprise license packs at roughly $15,000 list each, about $180,000, plus a smaller ongoing Azure compute bill. The vendor's recommendation had been to add hardware.
The result. The ERP platform now runs the same production workload on a quarter of the cores, with better reliability, and the company freed roughly $180,000 in SQL Server Enterprise licensing instead of spending more on hardware.
Read the full case study ➜
The technical detail
What we found. A 16-core Always On pair under load, with parallelism left at defaults, memory and tempdb misconfigured, no consistent maintenance, and several queries doing far more work than they needed. The CPU pressure looked like a hardware ceiling, but it was configuration and query cost.
What we changed (illustrative):
-- Round 1: instance configuration and maintenance
EXEC sys.sp_configure 'cost threshold for parallelism', 50; -- was 5
EXEC sys.sp_configure 'max degree of parallelism', 8; -- was 0
EXEC sys.sp_configure 'optimize for ad hoc workloads', 1;
RECONFIGURE;
-- right-size min/max memory, add tempdb data files to match the
-- scheduler count, and add CHECKDB + index/statistics maintenance jobs
-- Round 2: modernize the optimizer, then tune the top queries by CPU
ALTER DATABASE erp_prod SET COMPATIBILITY_LEVEL = 160; -- SQL Server 2022
-- query store on; parameter-sensitive plans (PSP) and intelligent
-- query processing (IQP) now active across the hot workload
With the workload tuned, the production load fit comfortably on 4 cores per server, so we right-sized both VMs from 16 cores to 4 and dropped from SQL Server Enterprise licensing on 32 cores to 8.