If you can backup/restore a copy of the source MAS_SYSTEM database onto the new server, you can use the attached scripts. They'll delete the contents of those three tables in new MAS_SYSTEM and then copy them from MAS_ZZZ (what I called the source MAS_SYSTEM that I restored), I used Sage 100 2023 for the list of fields to pull, so if you get an error about a field not existing (like MapService), you can just put two hyphens in beginning of that line (--,MapService) to comment them out and try again.
If you can't backup/restore, then you'll need to create a Linked Server entry from the new SQL server to the old, then you'd update the last FROM in each query to LINKED_SERVER_NAME.MAS_ZZZ.dbo.PLPeriodEndLog.
------------------------------
Steve Iwanowski, NextStep Technology Advisors, aka DSD Lancaster PA ¯\_(ツ)_/¯
------------------------------