Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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 Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Wednesday, July 23, 2014 10:49 PM
Points: 90, Visits: 388
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:30 PM
Points: 12,895, Visits: 32,089
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

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
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: Tuesday, September 16, 2014 8:47 AM
Points: 837, Visits: 2,460
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 Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Wednesday, July 23, 2014 10:49 PM
Points: 90, Visits: 388
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:30 PM
Points: 12,895, Visits: 32,089
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

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1542071
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse