SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Copy all jobs between SQL Server 2008 R2 and SQL Server 2012


Copy all jobs between SQL Server 2008 R2 and SQL Server 2012

Author
Message
rray 44280
rray 44280
SSC-Enthusiastic
SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)

Group: General Forum Members
Points: 166 Visits: 165
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?!?!
arnipetursson
arnipetursson
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1393 Visits: 1019
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.
rray 44280
rray 44280
SSC-Enthusiastic
SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)

Group: General Forum Members
Points: 166 Visits: 165
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?
Ed Wagner
Ed Wagner
SSC Guru
SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)

Group: General Forum Members
Points: 50149 Visits: 10844
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
rray 44280
rray 44280
SSC-Enthusiastic
SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)

Group: General Forum Members
Points: 166 Visits: 165
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.
rray 44280
rray 44280
SSC-Enthusiastic
SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)

Group: General Forum Members
Points: 166 Visits: 165
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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search