aspose file tools*
The moose likes JDBC and the fly likes How to change a Trans-SQL JOB interval programmatically using Java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to change a Trans-SQL JOB interval programmatically using Java?" Watch "How to change a Trans-SQL JOB interval programmatically using Java?" New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to change a Trans-SQL JOB interval programmatically using Java?