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

Show parent comment

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