This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply 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?
 
Similar Threads
How to remove the session value...
How to check if triggers are enabled in MS SQL Server database?
User Idle Time?
Java.exe memory leaks and Profiling/Performance tools
session invalidate