May 6, 2016 at 11:07 am
Hi everyone!...
Anyone have a T-SQL for sync Jobs and his steps and schedules between instances... I mean, a T-SQL to Script-out all information related to a Jobs, and then use that result to re-create the same Jobs in another instance...
Just to be clear... T-SQL that can have as result a "CREATE JOB" statement (I know that the real instruction is sp_add_job, sp_add_jobstep, sp_add_jobschedule and so on)
Thanks a lot for all of you guys
May 6, 2016 at 11:21 am
Did you just try right clicking on a job and select 'Script Job as' option?
It won't help you with synching jobs but that's not something I would normally want to do. I always want to verify any changes that I make. At least this makes migrating them easy.
May 6, 2016 at 1:29 pm
yb751 (5/6/2016)
Did you just try right clicking on a job and select 'Script Job as' option?It won't help you with synching jobs but that's not something I would normally want to do. I always want to verify any changes that I make. At least this makes migrating them easy.
Hi...
That's a manually task... I'm looking for something automátic, a T-SQL that I can implement in a job or in a ETL or maybe in a trigger-fire action.
Thanks for your time.
May 6, 2016 at 2:54 pm
what did google search throw up for you?
eg "ms sql script all agent jobs"
lot s of answers
________________________________________________________________
you can lead a user to data....but you cannot make them think
and remember....every day is a school day
May 6, 2016 at 3:42 pm
i have specific jobs that are identical on all servers, things like backups, statistics, indexing.
i connect via Central Management servers, and run the create job script on all of them at the same time.
nothing modifies them behind my back, so they are all the same when i deploy them.
Lowell
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply