Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
Administering
»
Exporting SQL Job
Exporting SQL Job
Rate Topic
Display Mode
Topic Options
Author
Message
New2SQL-343122
New2SQL-343122
Posted Saturday, September 20, 2008 9:17 AM
Valued Member
Group: General Forum Members
Last Login: 2 days ago @ 3:36 AM
Points: 50,
Visits: 911
Hi,
How to export SQL Jobs which under SQL Server Agent -> Jobs -> (All the jobs).
Just want to export these jobs from Server A to Server B.
I have already tried with msdb but unfortunatly it had failed to restored it.
Thanks in advance for any inputs.
Regards,
Mohanraj Jayaraman
Post #573013
Krishnaraj9
Krishnaraj9
Posted Saturday, September 20, 2008 12:19 PM
Old Hand
Group: General Forum Members
Last Login: Today @ 3:39 PM
Points: 334,
Visits: 645
Script all the jobs using Management studio in Server A and apply the script in Server B
Make sure the output path is valid
Post #573041
New2SQL-343122
New2SQL-343122
Posted Sunday, September 21, 2008 5:17 AM
Valued Member
Group: General Forum Members
Last Login: 2 days ago @ 3:36 AM
Points: 50,
Visits: 911
There are more than 150 Jobs are running, this is painfull task to copy the each jobs and pasting at the destination servers.
I am using SQL Servef 2005 64 Bit and couldn't do multiple select also.
Is there any script which will generate script for the jobs.
Regards,
Mohanraj Jayaraman
Post #573118
SQLBOT
SQLBOT
Posted Sunday, September 21, 2008 8:31 AM
SSChasing Mays
Group: General Forum Members
Last Login: Monday, February 18, 2013 3:22 PM
Points: 626,
Visits: 835
I believe you can use the copy database wizard to move jobs.
Just set up a 'sacrificial' database, right click -- tasks -- copy database
Run through the Wizard and I think you have the option to select agent jobs to copy.
~Craig
Craig Outcalt
MCITP, MCDBA
Craig Outcalt
Tips for new DBAs:
http://www.sqlservercentral.com/articles/Career/64632
My other articles:
http://www.sqlservercentral.com/Authors/Articles/Craig_Outcalt/560258
Post #573131
Greg Charles
Greg Charles
Posted Monday, September 22, 2008 9:50 AM
SSCarpal Tunnel
Group: General Forum Members
Last Login: 2 days ago @ 12:08 PM
Points: 4,006,
Visits: 4,845
Re: scripting jobs, you can script all the jobs in an instance into one file in SSMS if you click on "Jobs" in Object Explorer then highlight all the jobs in the Details panel, right-click and select "Script Job As...".
Then you only have one script to run in the Server B.
Greg
Post #573652
homebrew01
homebrew01
Posted Monday, September 22, 2008 12:57 PM
SSCrazy
Group: General Forum Members
Last Login: Today @ 9:03 PM
Points: 2,551,
Visits: 7,204
If you have anything that's server specific, such as operator names for email notification, then make sure they already exist on the target server. You can script them out & copy them first.
Post #573789
altitude00
altitude00
Posted Tuesday, February 08, 2011 12:58 PM
Forum Newbie
Group: General Forum Members
Last Login: Friday, February 01, 2013 12:14 PM
Points: 6,
Visits: 130
create a simple ssis package in which you have a tool called "transfer job task" , if you want you can pick the jobs or you can select all. and run the package ... boom all your 150 jobs will be transffed with in a min or 2 .
Post #1060582
erikskinner
erikskinner
Posted Thursday, December 06, 2012 10:49 AM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, January 29, 2013 12:11 PM
Points: 2,
Visits: 25
My recommendation is to use SSMS a newer flavor the better. use the Object Explorer Details. This allows you to highlight multiple objects. Click on the Jobs tree on the server and the jobs will appear in Object Explorer Details. Run the task to create script. With minor editing you should be able to recreate jobs.
Good luck.
Post #1393650
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.