SQL Server Upgrade: 2012, 2014 and 2016 to SQL Server 2022
Written by Abdulla SaiyedFounder & CEO, Taj IT Solutions · Published · 12 min read
Quick answer
How do I upgrade SQL Server 2012, 2014 or 2016 to SQL Server 2022?
SQL Server 2012, 2014 and 2016 have all reached the end of Microsoft's extended support, and SQL Server 2017 follows in October 2027. Yet thousands of business systems still run on them. This guide explains which version to move to, how to choose between in-place and side-by-side upgrades, how to upgrade availability groups with little downtime and how to avoid the classic post-upgrade slowdown.
Reviewed by Abdulla Saiyed, Founder · Last updated
SQL Server support dates and the right target version
Quick answer
Which SQL Server version should I upgrade to?
Most companies upgrading from SQL Server 2012, 2014 or 2016 should move to SQL Server 2022, which is fully supported, certified by most vendors and adds features such as Query Store on by default, Intelligent Query Processing and Azure integration. SQL Server 2019 is a fallback only when a vendor has not certified 2022 yet.
- SQL Server 2012: extended support ended in July 2022.
- SQL Server 2014: extended support ended in July 2024.
- SQL Server 2016: extended support ended in July 2026.
- SQL Server 2017: extended support ends in October 2027.
- SQL Server 2019: in extended support (security fixes) until January 2030.
- SQL Server 2022: the main current version with mainstream support.
In-place or side-by-side?
An in-place upgrade runs SQL Server setup on the existing server and upgrades the instance and its databases. It is quick and keeps server names and logins, but the old version is gone once it finishes, so the only rollback is restoring backups onto a rebuilt server. It also leaves you on old hardware and an old Windows version.
A side-by-side upgrade builds a new server with a current Windows Server and SQL Server 2022, then moves databases with backup and restore, log shipping or an availability group. The old server remains available as a fallback, and you can test the new one fully before cut-over. For production systems this is almost always the better choice.
SQL Server 2022 can restore or attach databases from SQL Server 2012 SP4 and later, so even 2012 databases can move straight to 2022.
Upgrading Always On availability groups with minimal downtime
- Rolling upgrade: upgrade the secondary replicas first, fail over to an upgraded secondary, then upgrade the old primary. Downtime is one failover.
- Distributed availability group or log shipping to a new 2022 cluster: keeps the new environment in sync and cuts over in minutes, while also moving to new hardware and Windows.
- Once a database runs on the new version it cannot be sent back to an older one, so keep the old copy until the new environment is proven.
Avoiding the post-upgrade slowdown: compatibility level and Query Store
Quick answer
Why is SQL Server slow after an upgrade?
Usually because the new cardinality estimator and optimizer choose different plans for some queries once the database compatibility level is raised. The safe method is to upgrade with the old compatibility level, enable Query Store to capture baseline plans, then raise the compatibility level and force the good plan for any query that regresses.
After the upgrade, databases keep their old compatibility level. Leave it as it is at first, turn on Query Store and let it collect a few days of normal workload. Then raise the level to 160 (SQL Server 2022), compare query performance and force previous plans for the few queries that slow down, before tuning them properly.
Also update statistics with full scan after the upgrade, review trace flags and configuration that were set for the old version, and check that maintenance jobs, backups and monitoring work against the new instance.
Pre-upgrade checks
- Run Microsoft's upgrade assessment tooling to find deprecated and discontinued features.
- Confirm vendor certification for SQL Server 2022 and the target Windows Server version.
- Inventory logins, SQL Agent jobs, linked servers, SSIS packages, SSRS reports and certificates to move.
- Check drivers and connection strings: TLS 1.2 and newer OLE DB or ODBC drivers are often required.
- Plan licensing: core-based licences, Software Assurance and whether to use Azure Hybrid Benefit.
- Rehearse the cut-over and time it on a copy.
Step 1: Inventory the instance, not just the databases
A SQL Server instance is much more than its user databases. Before any upgrade, list everything that lives in the instance and the system databases: logins and their passwords and SIDs, server roles, SQL Server Agent jobs, operators and alerts, linked servers, credentials and proxies, Database Mail profiles, server-level triggers, certificates and keys used by Transparent Data Encryption or backup encryption, and endpoints for availability groups or mirroring.
Also list the services around it: SQL Server Integration Services packages (in the SSIS catalog or in msdb), Reporting Services reports and subscriptions, Analysis Services models, and any custom maintenance scripts. In a side-by-side upgrade, every one of these must be recreated on the new server; forgetting one shows up as a failed job or a broken report a week later.
Finally, record the current configuration (max server memory, MAXDOP, cost threshold for parallelism, tempdb files, trace flags) and capture a performance baseline: wait statistics, the top queries by CPU and duration, and the busiest periods of the week.
Step 2: Check compatibility and vendor support
Run Microsoft's assessment tooling against each database to find deprecated and discontinued features, such as old-style outer joins, certain system stored procedures, or features that are no longer available. Most modern applications pass cleanly, but older line-of-business systems sometimes rely on features removed many versions ago.
Ask every software vendor whether they certify SQL Server 2022. Many ERP, accounting and healthcare systems publish a support matrix; running an uncertified version can void your support contract with the vendor even if it works.
Check drivers and connection strings. SQL Server 2022 and recent Windows Server versions expect TLS 1.2 or newer, and some old applications use the legacy SQL Server OLE DB provider or ODBC driver that does not support modern encryption. Upgrading the client driver is usually simple but must be planned and tested on every application server.
Step 3: Build and configure the new server
- Install a current Windows Server version and SQL Server 2022 with the latest Cumulative Update.
- Configure tempdb with multiple equal-size data files, set max server memory, MAXDOP and cost threshold for parallelism for the new hardware.
- Use separate volumes for data, log, tempdb and backups, formatted with a 64 KB allocation unit size.
- Enable instant file initialisation and lock pages in memory where appropriate.
- Recreate logins with their original SIDs (so database users map correctly), then jobs, linked servers, credentials, Database Mail and certificates.
- Install and configure monitoring and backup jobs before go-live, not after.
Step 4: Move the databases with minimum downtime
For small databases with a generous window, a full backup and restore at the cut-over is enough. For larger ones, restore the full backup days before the cut-over with NORECOVERY, keep applying differential and log backups (or set up log shipping), and at the cut-over apply only the last log backup. The downtime becomes the time to take and restore one small log backup.
For availability groups, add the new SQL Server 2022 replicas to the existing group where the versions allow it, or build a distributed availability group between the old and new clusters. At the cut-over, fail over to the new environment. Remember that once a database is opened on SQL Server 2022 it cannot be restored onto the older version, so the old replicas stop being a fallback once you fail over and the data starts changing.
After restoring, check that database ownership, Trustworthy settings, CLR assemblies, Service Broker and full-text catalogues behave as before, and run DBCC CHECKDB to confirm integrity on the new server.
Step 5: The compatibility level plan in detail
SQL Server keeps the old database compatibility level after the upgrade, so a database moved from SQL Server 2014 runs at level 120 on SQL Server 2022. This is deliberate: queries keep the behaviour they had, and you can upgrade the engine first and the optimizer behaviour later.
Turn on Query Store immediately and leave the database at its old level for a week or one full business cycle. Query Store records each query's plans and runtime statistics. Then raise the compatibility level to 160. Query Store's regressed queries report shows any query that became slower, and you can force its previous plan in one click while you work on a permanent fix.
SQL Server 2022 adds features that make this safer, including Query Store hints and parameter sensitive plan optimisation, and Query Store is enabled by default for new databases. Teams that skip this step and raise the level on day one are the ones who report that "SQL Server 2022 is slower".
Licensing and cost considerations
SQL Server is licensed per core for Enterprise and Standard Edition in most server scenarios. An upgrade with Software Assurance allows moving to the new version; without it, new licences are needed. Moving to new hardware is a good time to right-size cores, because many old servers have more cores than the workload uses.
If you run SQL Server in Azure virtual machines, Extended Security Updates for older versions are included, and Azure Hybrid Benefit can reuse existing licences. These options can reduce cost, but they should be compared with the cost of simply upgrading.
A typical side-by-side upgrade of one production instance with a handful of databases takes three to eight days of DBA effort, including the inventory, build, rehearsal, cut-over and a week of follow-up. Availability group estates and instances with many SSIS and SSRS objects take longer. At US$25–40 per hour, the project is usually a small fraction of the licence cost.
Common SQL Server upgrade problems we fix
- Orphaned database users after a side-by-side move because logins were created with new SIDs.
- Failed SQL Agent jobs that referenced the old server name, file paths or linked servers.
- Application connection failures caused by old drivers and TLS settings.
- Slow queries after raising compatibility level, fixed with Query Store and proper indexing.
- SSIS packages that need upgrading to the new SSIS version and new connection managers.
- Maintenance plans and backups missing on the new server because they lived only in the old msdb.
Upgrading SSIS, SSRS and Analysis Services
Integration Services packages stored in the SSIS catalog can be migrated with the catalog deployment tools and upgraded to the new package format; packages stored in msdb or the file system are upgraded with the package upgrade wizard or by opening them in a current version of Visual Studio. Connection managers using old providers should be changed to current OLE DB or ODBC drivers at the same time.
Reporting Services no longer upgrades in place in the old way: modern SSRS is installed separately, and the report server database is backed up and restored onto the new installation together with its encryption key. Subscriptions, data sources and permissions come with it. Analysis Services models are upgraded by deploying them to the new instance and raising their compatibility level after testing.
SQL Server on AWS and Azure virtual machines
On cloud virtual machines the side-by-side method is particularly attractive: a new VM with Windows Server and SQL Server 2022 can be built from a marketplace image in minutes, and licensing can be pay-as-you-go or bring-your-own. Amazon RDS for SQL Server and Azure SQL Managed Instance remove version upgrades from your team's work entirely but are migrations rather than upgrades and need their own assessment.
Whichever platform you choose, size the new VM from the baseline, not from the old server, and use the right storage tier for data, log and tempdb.
A worked example: SQL Server 2014 failover cluster to 2022 availability group
A common scenario is a two-node SQL Server 2014 failover cluster instance on shared storage, hosting a dozen databases for an ERP and some in-house applications. The plan builds two new Windows Server nodes with SQL Server 2022 in an availability group, restores the databases from full backups days ahead and keeps them current with log backups. On the cut-over night, applications are stopped, a final log backup is applied, the databases are recovered and joined to the availability group, and the listener name is used by the applications from then on. The outage is under an hour, and the old cluster remains intact as a fallback until the business signs off.
Security improvements you gain by upgrading to SQL Server 2022
Beyond restoring security patches, SQL Server 2022 brings controls that older versions lack or handle less well: Ledger tables for tamper-evident records, Always Encrypted with secure enclaves for queries on encrypted columns, granular permissions that separate administration from data access, improved auditing, and Microsoft Entra ID authentication for hybrid environments. Support for TLS 1.3 and stricter connection encryption defaults protect data in transit.
These features are rarely the main reason for an upgrade, but they often close audit findings that would otherwise need separate projects, so include them in the business case.
The first 30 days after a SQL Server upgrade
- Day 1: check error logs, failed jobs, blocked processes and application error rates every few hours.
- Week 1: review Query Store for regressed queries; force good plans where needed and log each one for a permanent fix.
- Week 2: raise the database compatibility level if it was left at the old value, and repeat the Query Store review.
- Week 3: confirm backups restore correctly on the new server, and run a failover test if the server is in an availability group.
- Week 4: decommission the old server once the business signs off, and update documentation, monitoring and the DR plan.
How Abdulla Saiyed's experience shapes your SQL Server upgrade
Abdulla Saiyed, Taj Solutions' founder, is an Oracle Certified Professional with 18+ years as a DBA. From 2006 to 2023 he was Engineering Manager DBA at Sterlite Technologies in Ahmedabad, responsible for database design, high availability, disaster recovery and performance tuning of production systems, and he then led remote DBA teams at Crossover.
The principles behind a safe SQL Server upgrade are the same ones he applied to production databases for nearly two decades: never change production without a rehearsal, always have a tested way back, keep the high availability design intact through the change, and prove performance with numbers before and after. For SQL Server that means a side-by-side build where possible, availability group or log shipping cut-overs to keep downtime short, and Query Store baselines before the compatibility level is raised.
Abdulla reviews the plan and runbook for each upgrade, and the work is done by the Taj Solutions DBA team, all employees under NDA.
Key takeaways
- SQL Server 2012, 2014 and 2016 are out of support; 2017 follows in October 2027.
- Move to SQL Server 2022, preferably side-by-side on new Windows Server.
- Upgrade availability groups with a rolling or distributed AG method to keep downtime to a failover.
- Raise compatibility level only after Query Store has a baseline.
Provider scorecard: how to compare sql server dba providers
Put the same questions to every provider, including us, and score each row from 1 to 5.
| What to compare | Ask this | Good answer | Red flag |
|---|---|---|---|
| SQL Server depth | Explain our log chain and availability options | Clear answers including edition and licence limits | High availability designed without asking about edition |
| Security and access | How will you access our databases? | NDA, named accounts, least privilege, logged sessions, same-day offboarding | Shared logins or blanket admin rights from day one |
| Proof of recovery | Can you show a timed restore test? | Scheduled restores to a separate server, with results and timings | Only “backup succeeded” messages |
| Cover and response | Who responds at night and at weekends? | Named on-call cover with response targets by severity, in writing | “We are always available” with nothing written |
| Pricing | What is billed, and what costs extra? | Written estimate, hour log, extra charges listed | A fixed price before anyone has looked at your systems |
| Low-risk start | Can we begin small? | Read-only health check, then a prioritised plan | Long lock-in before any work is shown |
Related service
SQL Server DBA SupportMicrosoft SQL Server and Azure SQL — Always On, Query Store tuning, maintenance plans and upgrades off end-of-life versions.
Frequently asked questions
6 quick answers to what people ask most about this topic.
Can I upgrade SQL Server 2012 directly to 2022?
Can I downgrade if the upgrade fails?
What about Extended Security Updates?
How long does a SQL Server upgrade take?
Should I upgrade to SQL Server 2019 or 2022?
Can I move from SQL Server to Azure SQL instead of upgrading?
Official references
How Taj Solutions can help
Need help with sql server dba support?
Microsoft SQL Server and Azure SQL — Always On, Query Store tuning, maintenance plans and upgrades off end-of-life versions.
- Always On availability groups
- Failover cluster instances
- Query Store and index tuning
- SQL Agent job monitoring
- Maintenance plan redesign
- Azure SQL / Managed Instance
- Upgrades from SQL Server 2016 and older
What you gain
Senior help without a full-time hire
Pay for the hours or the cover you need instead of recruiting, training and covering leave for an employee.
A second pair of expert eyes
An independent review finds risks the team living with the system no longer sees, and gives a prioritised plan.
Fewer outages and surprises
Backups proven by restore tests, monitoring that is read, and changes that follow a tested plan.
Faster fixes, written down
Problems are traced to the cause and every change is documented, so the fix stays with your company.
Read more about SQL Server DBA Support at Taj Solutions.
Why choose Taj Solutions
Why businesses choose Taj Solutions for their databases
A founder-led remote DBA company in India, built by practising DBAs, with clear pricing, security and proof of recovery.
Led by an 18+ year Oracle DBA
Abdulla Saiyed is an Oracle Certified Professional with 18+ years of DBA experience, including 16+ years as Engineering Manager DBA at Sterlite Technologies. Senior judgement is on your project, not only in the sales call.
24/7 cover in three shifts
Our team works around the clock in three shifts, assigned per project as your demand requires: one shift for routine care, two for a migration window, all three for 24/7 production support.
Transparent pricing
Rates start at US$25–40 per hour, with every hour logged and a written estimate before work starts. Need a named person full time? A dedicated DBA is available on a fixed monthly charge, quoted to your requirement.
Security from day one
NDA, VPN-only named accounts, least-privilege access, logged sessions and a same-day offboarding step are standard, not an upgrade.
Restore tests, not promises
Backups are only real when restored. We schedule restore tests and give you the timed results, so you know your recovery time before you need it.
Every major platform
Oracle, SQL Server, PostgreSQL, MySQL, MariaDB and MongoDB, on your servers or on AWS, Azure, Google Cloud and Oracle Cloud.
In-house team, no subcontractors
The DBAs and engineers who touch your data are Taj Solutions employees, with documentation that stays with you.
Replies in 10 minutes
Send your brief and we reply within 10 minutes in business hours, hold a free discovery call and follow with a written estimate.
How to get started
- 1
Tell us what hurts
Share your platforms, versions and problems by form, email or WhatsApp.
- 2
Free discovery call and NDA
We agree scope and cover window, and sign an NDA before any access.
- 3
Read-only health check
We review your databases without changing anything and report risks and quick wins.
- 4
Written estimate, then we start
You approve a plan with hours or a monthly charge, and work begins with regular, plain-language reports.
Talk to us: info@tajsolutions.in · +91 94261 75704 · WhatsApp
Related reading
- Oracle Database Upgrade: 11g and 12c to 19c and 23ai, Step by Step →
- Database Recovery Services: What They Include, Cost and How to Choose →
- How to Choose the Best Remote DBA Service →
- SQL Server DBA Support: what is included →
- DBA support by industry →
- Remote DBA services by country and city →
- DBA questions and answers →
- All guides →
Want a DBA to do this for you?
Our DBAs apply these steps to your databases. We reply within 10 minutes and send an estimate in hours.