October 23, 2013 at 11:58 am
The two approaches seem to be 1) backup MSDB on one server and restore it on the other, or, 2) create a script for all the jobs on one and execute it on the other.
1) Will the MSDB backup/restore work between 2008 R2 and 2012?
2) The suggestion to use a script is always prefaced with the direction "Select all the jobs....". For the life of me I can't find a way to select multiple jobs in the Jobs section of SSMS. How do you do that?!?!
October 23, 2013 at 12:46 pm
You do not want to restore msdb from one version to another.
Select the jobs folder in SSMS and select F7 or select View/Object Explorer Detail.
This will list all the SQL agent jobs in the objects explorer.
There you can select all (Ctrl+A) jobs and then script out all the jobs.
October 23, 2013 at 1:01 pm
I'm feeling a bit dense here :-). F7 to get the Object Details was a breakthrough. I was able to select all the jobs (or Control-Click to get a subset).
I'm afraid I still don't see a way to generate the scripts. In Object Explorer, where I can only select a single job, I have the right-click, Script Object As... choice, but in the Object DEtails dialog I don't see that.
What am I missing?
October 23, 2013 at 1:11 pm
rray 44280 (10/23/2013)
I'm feeling a bit dense here :-). F7 to get the Object Details was a breakthrough. I was able to select all the jobs (or Control-Click to get a subset).I'm afraid I still don't see a way to generate the scripts. In Object Explorer, where I can only select a single job, I have the right-click, Script Object As... choice, but in the Object DEtails dialog I don't see that.
What am I missing?
In Object Explorer, click on Jobs. Press F7 to bring up the details window. Click something in the details window and either click and drag to select everything or press Ctrl-A to select them all. Right-click one of them to bring up the context menu. Select Script Job As...Create To...New Query Editor window. Watch the script get generated in a new window.
October 23, 2013 at 1:19 pm
Something's wrong. That's exactly what I've been tryng, but I don't get the right-click context menu in the Object Explorer Details window as I do in the main Object Explorer window.
At any rate, you've explained it to me very thoroughly. Thank you. I'll just hack away at it until I get it to work.
October 23, 2013 at 1:24 pm
Hold the phone! I'm on a dual monitor setup with SSMS running on the left monitor. For whatever reason, the right-click context menu appears all the way over on the far right side of the right monitor hidden amongst web browser and email client windows.
OK, now I'm in business. Thanks again.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply