• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to change a Trans-SQL JOB interval programmatically using Java?

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,

Is there any way to update an existing Trans-SQL Job's interval programmatically?? Kindly help me out.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Thiagu Sin
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic