Just in case you didn’t see any news on this, Microsoft ENDED extended support for SQL Server 2012 on July 12, 2022 – https://docs.microsoft.com/en-us/lifecycle/products/microsoft-sql-server-2012. Do you still have critical databases running on this 10 year old version of SQL Server? Dare I ask, are they running on the ancient Windows Server 2012 operating system which will be unsupported by Microsoft since next October??? It’s time to upgrade!! Here is an overview of the process to get that done.
Know the Options
- SQL Server 2019
- Easiest upgrade
- Download the Developer edition here https://www.microsoft.com/en-us/sql-server/sql-server-downloads
- SQL Server 2022
- CTP 2.0 recently released, full release later this year!
- Lots of new features: business continuity to Azure, analytics, SECURITY, and multiple performance improvements
- Run in the Azure Cloud
- Azure SQL Database
- Azure SQL Managed Instance
- SQL Server on an Azure VM (can still run 2012 and get security updates)
Questions to Ask
- What is this database for? (Accounting, Human Resources, Critical Application…)
- Is my vendor still supporting it?
- What versions of SQL Server are on the vendor’s application compatibility list?
- What does it take to upgrade that application to be compatible with the latest version of SQL?
- Does that effort/cost outweigh the risk of not being able to call Microsoft with any SQL Server issue?
- What costs do I have (server, licensing, and professional services) to upgrade to SQL Server 2019? Or do I already have licensing for a not-so-recent version?
- Are we running any other SQL Server services like Reporting Services, Integration Services, MDS, DQS, SSAS, replication and more!
- Do I need additional resiliency and high availability with the upgrade process?
- Make sure you know exactly how many servers/databases you have running SQL Server 2012
- Recommend running the Microsoft Assessment and Planning Toolkit to get a full inventory of your database servers
- Install the Data Migration Assistant on any machine on the same network as the identified SQL Servers
- View the report on compatibility issues identified for each database, resolve or ignore at your discretion
- The report will have a list of detected issues identified by Importance
- Review the entire report carefully!!
- This report just tells you what could be wrong
- It does nothing to actually fix anything
- At this point we need to decide if the new SQL Server will be a new virtual machine, a new physical host, or a cloud VM
- The operating system should be Windows Server 2019 or Windows Server 2022 – please nothing older!
- If you choose a physical host, be well aware of how Microsoft licenses SQL Server by core count and purchase the CPU with the highest clock rate you can afford based on core count (no hyperthreading)
- Know that licensing will by far be the most expensive line item on this project!
- Provision your server, according to SQL Server best practices and you will save a TON of headache later!
- Time to test
- Backup production database(s)
- Restore databases to new, SQL Server (2019, I hope) DEVELOPER instance
- Change database compatibility level to highest level supported
- This will make sure that the new database will be able to use all the query performance improvements and new features.
- If there are any breaking changes, we’ll know fast and CAN downgrade in the event the situation cannot be resolved
- Purchase, license, and install your chosen version of SQL Server on your new server
- Backup the 2012 database and restore to the new SQL Server instance
- Run these commands:
USE MyImportantDB DBCC CHECKDB WITH DATA_PURITY;
USE MyImportantDB EXEC sp_updatestats;
- Take a full backup
- Point a non-production instance of your application, if available, to the new SQL Server instance and run through a few simple tasks
- There are several places where you may get a failure…
- Definitely view each screen, add a few records, and run a few reports to see how it is performing
- Record your results and re-point your application back to the original server
- Review your results with stakeholders/management
- Prepare your users for a cutover
- Or be sneaky and don’t tell them!
- “Let’s see if they can tell the difference?”
- Cutover and party like its 2022!!!
- This is not an exhaustive list of a thoroughly planned cutover
- There are some snarky comments inserted just for your enjoyment, and actual cutover will be assuredly professional
By upgrading your organization’s database servers, you not only get your databases onto a fully supported platform, you are also taking advantage of 10+ years of innovation and improvements in Microsoft technology. SQL Server has been battle-tested in the cloud for several years now and Microsoft is using knowledge gained in that endeavor to make incredible improvements in SQL Server. SQL Server 2022 recently hit CTP 2.0 and promises another assortment of improvements, particularly in the server performance space.
Need help getting started on a SQL Server 2022 assessment and upgrade? Contact PBITPro at paul @ pbitpro.com or call 972.987.0637.