| Author |
How to change a Trans-SQL JOB interval programmatically using Java?
|
Thiagu Sin
Greenhorn
Joined: Jan 10, 2009
Posts: 13
|
|
Hi everyone,
Is there any way to update an existing Trans-SQL Job's interval programmatically?? Kindly help me out.
|
Regards,
-Thiagu-
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
|
You can just call the relevant system stored procedures I think - from memory it's sp_add_schedule (or something similar) to schedule agent jobs.
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
Thiagu Sin
Greenhorn
Joined: Jan 10, 2009
Posts: 13
|
|
Paul Sturrock wrote:You can just call the relevant system stored procedures I think - from memory it's sp_add_schedule (or something similar) to schedule agent jobs.
So, once I create a schedule, I can assign the schedule to a particular job and alter the interval dynamically using this procedure sp_update_schedule ???
|
 |
Thiagu Sin
Greenhorn
Joined: Jan 10, 2009
Posts: 13
|
|
Thiagu Sin wrote:
Paul Sturrock wrote:You can just call the relevant system stored procedures I think - from memory it's sp_add_schedule (or something similar) to schedule agent jobs.
So, once I create a schedule, I can assign the schedule to a particular job and alter the interval dynamically using this procedure sp_update_schedule ???
Hey Paul, it worked.....Thank you very much for the help
|
 |
 |
|
|
subject: How to change a Trans-SQL JOB interval programmatically using Java?
|
|
|