Script to Generate Job Scripts – SQL Server

The following script generates the “Job Details” as in script form. I struggled a lot to migrate jobs from one server to another server and decided to write a script to do this. A bit long, but worth the time to look at 🙂