February 14, 2014 at 4:11 am
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
February 14, 2014 at 5:56 am
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
February 14, 2014 at 6:52 am
you need to provide a lot more information.
Service broker can do some things like this, but not all
February 16, 2014 at 10:18 pm
We need to restart the job execution If there is any data changes or deletion.
Regards,
Ram
February 17, 2014 at 6:16 am
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
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply