Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Copy all jobs between SQL Server 2008 R2 and SQL Server 2012 Expand / Collapse
Author
Message
Posted Wednesday, October 23, 2013 11:58 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, September 5, 2014 11:55 AM
Points: 46, Visits: 152
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?!?!
Post #1507778
Posted Wednesday, October 23, 2013 12:46 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Yesterday @ 5:29 PM
Points: 277, Visits: 867
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.
Post #1507795
Posted Wednesday, October 23, 2013 1:01 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, September 5, 2014 11:55 AM
Points: 46, Visits: 152
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?
Post #1507800
Posted Wednesday, October 23, 2013 1:11 PM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Today @ 6:33 AM
Points: 4,033, Visits: 3,467
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.



Tally Tables - Performance Personified
String Splitting with True Performance
Best practices on how to ask questions
Post #1507804
Posted Wednesday, October 23, 2013 1:19 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, September 5, 2014 11:55 AM
Points: 46, Visits: 152
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.
Post #1507805
Posted Wednesday, October 23, 2013 1:24 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, September 5, 2014 11:55 AM
Points: 46, Visits: 152
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.
Post #1507806
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse