|
Hi, I have a SQL server job with 3 schedules, how I can configure the job to ignore schedule 2 and 3 if schedule 1 was successful, schedules kicks off 8,9,10 AM, the job runs on a monthly basis.
(comments are locked)
|
|
Well, one option that you could try is to set up two steps in the job. The first step would, on success, call the second step, which made calls to sp_update_schedule and disabled those two schedules for that job. Or, reverse it, and have the jobs disabled by default, but if the first step errors, the second step enables the two schedules using the same proc. Great thanks a lot
Apr 16 '10 at 03:51 PM
user-1550 (google)
most efficient method to perform the task. There are other methods that may be employed, but this is what I would use.
Apr 16 '10 at 08:48 PM
CirqueDeSQLeil
(comments are locked)
|
|
DOh... Pip'd at the finish line !!! I +1d Grant but I thought I'd +1 you too in sympathy! :)
Apr 16 '10 at 06:47 PM
Matt Whitfield ♦♦
yeah, you get a +1 in sympathy from me too ;)
Apr 18 '10 at 11:46 AM
Fatherjack ♦♦
Ha.. Thanks guys ;-)
Apr 18 '10 at 01:16 PM
sp_lock
(comments are locked)
|

