hi everyone,
I have 3 processes I need to further automate:
1. a job executes a stored proc which copies rows from Table1 to Table2
2. a Snapshot Replication job takes a snapshot of Table2
3. a Replication Distribution job sends Table2 data to the subscriber server
(These jobs were built with Enterprise Manager)
OK - All of this is working now via running these steps as scheduled jobs. But sometimes Job 1 takes longer to complete than it usually does... so Job 2 may start running before Job 1 has finished copying. Most of the time, the scheduled times work... but not always.
** In my stored proc, can I call/execute Job 2... then after Job 2 completes, execute Job 3 ? **
It seems like this would be a fairly common thing to need to do, not execute Job 2 until Job 1 has completed...
Any ideas? Thanks - John
I have 3 processes I need to further automate:
1. a job executes a stored proc which copies rows from Table1 to Table2
2. a Snapshot Replication job takes a snapshot of Table2
3. a Replication Distribution job sends Table2 data to the subscriber server
(These jobs were built with Enterprise Manager)
OK - All of this is working now via running these steps as scheduled jobs. But sometimes Job 1 takes longer to complete than it usually does... so Job 2 may start running before Job 1 has finished copying. Most of the time, the scheduled times work... but not always.
** In my stored proc, can I call/execute Job 2... then after Job 2 completes, execute Job 3 ? **
It seems like this would be a fairly common thing to need to do, not execute Job 2 until Job 1 has completed...
Any ideas? Thanks - John