Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

How to auto refresh the existing job using stored procedure Expand / Collapse
Author
Message
Posted Friday, February 14, 2014 4:11 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, February 23, 2016 11:21 PM
Points: 100, Visits: 505
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
Post #1541530
Posted Friday, February 14, 2014 5:56 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 1:44 PM
Points: 14,557, Visits: 38,445
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!
Post #1541561
Posted Friday, February 14, 2014 6:52 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Wednesday, December 7, 2016 2:23 AM
Points: 948, Visits: 2,855
you need to provide a lot more information.

Service broker can do some things like this, but not all
Post #1541580
Posted Sunday, February 16, 2014 10:18 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, February 23, 2016 11:21 PM
Points: 100, Visits: 505
We need to restart the job execution If there is any data changes or deletion.

Regards,
Ram
Post #1541988
Posted Monday, February 17, 2014 6:16 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 1:44 PM
Points: 14,557, Visits: 38,445
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!
Post #1542071
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse