How to auto refresh the existing job using stored procedure

  • Hi,

    We have an stored procedure to create/execute the job automatically, now we are looking for auto refreshing the job if there is any problem[Data changes] while running the running job. Is there any way to auto refresh the job activity using the same stored procedure?

    Regards,

    Ram

  • sram24_mca (2/14/2014)


    Hi,

    We have an stored procedure to create/execute the job automatically, now we are looking for auto refreshing the job if there is any problem[Data changes] while running the running job. Is there any way to auto refresh the job activity using the same stored procedure?

    Regards,

    Ram

    what do you mean by "auto refresh"?

    do you mean refreshing the GUI in SSMS so that it's status gets updated, instead of clicking refresh?

    do you mean restart some procedure because the data has changed?

    i'm at a loss on what you want to accomplish, so you'll need more details to get help.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • you need to provide a lot more information.

    Service broker can do some things like this, but not all

  • We need to restart the job execution If there is any data changes or deletion.

    Regards,

    Ram

  • sram24_mca (2/16/2014)


    We need to restart the job execution If there is any data changes or deletion.

    Regards,

    Ram

    sounds like there's a problem with the logic in your process.

    a job should change the data it can see. if the data changes after that process, then the job needs to be scheduled to execute more often, and not 'restart" the job.

    for example, maybe it runs every half hour, and moves/migrates/does work based on the new data it finds...but that means the process must find differences/new data, based on a WHERE statement...does it do that now?

    we can only guess at what you are trying to accomplish.

    help us help you. show us the tsql the job is running, and we can help you better.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply