r/SQLServer • • Oct 17 '25

Question Upgrading SQL Server 2008 SP3 to SQL Server 2022. Best Upgrade Path and Licensing Questions

I have a requirement to upgrade several SQL Server 2008 SP3 databases to a new environment on new servers running SQL Server 2022. As per Microsoft’s documentation, SQL Server 2008 cannot be upgraded directly to 2022.

So, I’m considering two possible upgrade paths:

  1. SQL Server 2008 → SQL Server 2012 → SQL Server 2022
  2. SQL Server 2008 → SQL Server 2016 → SQL Server 2022

My questions are:

  1. Which path is the better approach, upgrading via 2012 or via 2016?
  2. For either of the above methods, I’ll need intermediate installation binaries (2012 or 2016). How can I obtain those? Are they still available for purchase from Microsoft?
  3. Can I perform the intermediate upgrade using Developer Edition (e.g., 2012 Developer or 2016 Developer) and then do the final upgrade to SQL Server 2022 Enterprise Edition?
14 Upvotes

25 comments sorted by

View all comments

17

u/dbrownems ‪ ‪Microsoft Employee ‪ Oct 17 '25

You don't want to do an in-place upgrade of something that old. You really shouldn't do in-place upgrades at all, but they're convenient.

Build your new SQL Server 2022 environment and migrate your databases using backup/restore. No intermediate version required. See "Migrate to SQL Server 2022" here:

Supported Version and Edition Upgrades (SQL Server 2022) - SQL Server | Microsoft Learn

1

u/Annual-Chicken7455 Oct 17 '25 edited Oct 17 '25

u/dbrownems I'm not performing an in-place upgrade. I'm doing side to side migration. As per your reference link even though I migrate my 2008 DB to 2022, It will stay in the same compatibility level as 2008 (compatibility level 100). So, this will not bring me the real benefit of migrating to 2022? isn't it?

5

u/FreedToRoam Oct 17 '25

have You tried restoring a 2008 backup to 2022? I haven't gone that far back but normally during restore it does the database conversion

2

u/Annual-Chicken7455 Oct 17 '25 edited Oct 17 '25

u/FreedToRoam I haven't tried yet. But although it gets restored, it does not upgrade the compatibility level from 2008 (100) to 2022 (160). It should be performed manually, I guess.

what do you mean by conversion?

7

u/adaptive7 Oct 17 '25

setting the compatibility level is easy and usually done in <1min

1

u/Annual-Chicken7455 Oct 17 '25

u/adaptive7 this is right, but I'm not sure whether my application and code will work normally with the new compatibility level. (BTW, am I missing something in my upgrade plan?)

5

u/dbrownems ‪ ‪Microsoft Employee ‪ Oct 17 '25

Right. That's what the compatibility level is for. You can migrate and test with both compatibility levels ahead of the production cutover. If you discover you have to make changes to run at the higher compatibility level you can either make them before the cutover or run with the 100 compatibility level until you can.

You'll still be running on SQL Server 2022. The compatibility mostly controls the query optimizer behavior, and only blocks using new features when necessary for language backwards compatibility.

1

u/alinroc 4 Oct 17 '25

am I missing something in my upgrade plan?

Yes. I don't see where you tested your application in a non-production environment. You aren't planning to make this a live-fire exercise, are you?

4

u/alinroc 4 Oct 17 '25

The "conversion" they're likely referring to is updating all the internal database objects to the latest version. This is handled in the background when you start up an "old" database on a newer version and takes 2-5 seconds per database. It's called script update mode and runs serially, one database at a time (this happens after installing CUs as well). Until script update mode is complete, the instance will not be fully online. So if you have a lot of databases, this can slow down your startup significantly. Ask me how I know :)

1

u/dbrownems ‪ ‪Microsoft Employee ‪ Oct 17 '25

You raise the compatibility level after running under the original compatibility level with Query Store enabled to create a performance baseline.

https://learn.microsoft.com/en-us/sql/database-engine/install-windows/change-the-database-compatibility-mode-and-use-the-query-store?view=sql-server-ver17

3

u/tompear82 Oct 17 '25

The nice thing about doing a migration like this is that it allows you to test and work out any issues before the real migration. If you are going to adjust the compat level, I'd recommend waiting until some time after the initial migration. This is something that can always be changed back if it negatively affects performance

1

u/Annual-Chicken7455 Oct 17 '25

"This is something that can always be changed back if it negatively affects performance" u/tompear82 compatibility level is possible to revert back easily?

2

u/jshine13371 6 Oct 17 '25

even though I migrate my 2008 DB to 2022, It will stay in the same compatibility level as 2008 (compatibility level 100). So, this will not bring me the real benefit of migrating to 2022? isn't it?

Compatibility Level is just a setting on the database. After you migrate the database via a backup / restore to an instance running SQL Server 2022, you can go into the database properties and change the Compatibility Level to whichever one you want, including the latest for 2022.