Copying jobs in MS SQL

I have created some long (20+ steps) jobs in SQL to manage backups. I would like to copy them to another job and make some minor changes. I have noticed the "generate script" option. How does that work?
Jim_MeadAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SashPCommented:
It creates the TSQL necessary to recreate the job.

Exactly what you need.

Sash
0
SashPCommented:
Select the create SQL Script option, select a destination for the script and thats it.

You will be able to identify the job steps that you are after and copy them to a new job fairly easily.

Sash
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jim_MeadAuthor Commented:
Thanks. Do you just execute script in the query analyzer?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

SashPCommented:
Yes.

Doing so will recreate the job.  Rename the delete job step and rename the job name and run it and you will have a copy of the job.

Sash
0
SashPCommented:
Sorry I should have said "Remove the delete job step"
0
Jim_MeadAuthor Commented:
Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.