During a database migration or a side by side database upgrade project we need to migrate the MS SQL Server Agent jobs. This script compare jobs by names and shows unmatched jobs from both boxes. That would help to avoid problems related to the forgotten to migrate MS SQL Agent jobs.
In order to use this script you need to:
- create a linked server to the other server
- replace {OLD_BOX} with your linked server name
- execute the script.
The account which you use to execute this script must have select permissions on the table msdb.[dbo].[sysjobs] on both servers.