That happens if the source system is a higher level. Even a higher patch level in the source system will cause it to fail. 100%, no way around that.
The target system being a higher patch level is perfectly fine. I've done dozens of Premium migrations... this is one of the first things I check (along with the SQL Collation method). The only time you need to match the SQL patch level, is when you want to copy the post-migration databases back to the original instance (manually).
Munjal White Consulting Co.
Original Message:
Sent: 03-17-2023 12:03
From: Doug Higgs
Subject: SQL error - Unhandled exception ALTER DATABASE FAILED
@Kevin Moyes I believe you are correct on the higher version, although I have had issues in the past. See the attached KB. I believe the issue I typically have seen that causes a failure is the patch level. IT says "SQL 2019 is installed on both servers". If SQL 2019 doesn't have the exact same patch level then the migration fails.
------------------------------
Doug Higgs
Midwest Commerce Solutions, Inc
(312) 315-0960
Chauffeur, Chef, and Personal Assistant to Sprinkles
------------------------------
Original Message:
Sent: 03-17-2023 11:48
From: Kevin Moyes
Subject: SQL error - Unhandled exception ALTER DATABASE FAILED
No, the regular migration programming only requires that the new SQL instance is no lower than the source SQL instance. It (new instance) can be the same, or higher. (This is actually a SQL requirement due to how backup and restore works in SQL, not a Sage requirement).
Where did you get the idea they had to be the same?
------------------------------
Kevin Moyes
Technical Systems Analyst
Munjal White Consulting Co.
Original Message:
Sent: 03-17-2023 11:45
From: Doug Higgs
Subject: SQL error - Unhandled exception ALTER DATABASE FAILED
@Kevin Moyes That's using a manual backup and restore, correct? Using the Sage migration tool I believe, you have to have the exact version and patches.
------------------------------
Doug Higgs
Midwest Commerce Solutions, Inc
(312) 315-0960
Chauffeur, Chef, and Personal Assistant to Sprinkles
Original Message:
Sent: 03-17-2023 11:43
From: Kevin Moyes
Subject: SQL error - Unhandled exception ALTER DATABASE FAILED
Doug,
You can restore a database to a higher version of SQL, so it is perfectly fine if the new SQL instance is a newer version.
If you want to use the original SQL instance for the Live upgrade system, (eg. because of existing setups that are too hard to redo), then the instances do have to be exactly the same (down to the patch level) because you have to do the upgrade migration, then copy the databases back, and that only works if the instances match exactly.
------------------------------
Kevin Moyes
Technical Systems Analyst
Munjal White Consulting Co.
Original Message:
Sent: 03-17-2023 11:35
From: Doug Higgs
Subject: SQL error - Unhandled exception ALTER DATABASE FAILED
Not sure if this was mentioned previously: Always check the SQL version on the source instance and the destination instance and make sure the versions are exactly the same. This is a Sage requirement that doesn't make sense. Since certain versions of SQL are only compatible with certain versions of Sage 100 then how does one migrate from Sage 100 version 2016 / SQL 2014 (most recent compatible version) to Sage 100 version 2022 SQL 2019 (least recent compatible version)? The only way to do it is to first migrate using the SQL 2014 then upgrade to SQL 2019 later. We're having fun now!
------------------------------
Doug Higgs
Midwest Commerce Solutions, Inc
(312) 315-0960
Chauffeur, Chef, and Personal Assistant to Sprinkles
Original Message:
Sent: 03-17-2023 11:15
From: Kevin Moyes
Subject: SQL error - Unhandled exception ALTER DATABASE FAILED
I've been doing this for Premium upgrades... as a part of our internal checklist.

------------------------------
Kevin Moyes
Technical Systems Analyst
Munjal White Consulting Co.