Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Run SQL Agent Jobs Sequentially

Author  Topic 

learntsql

524 Posts

Posted - 2009-12-15 : 08:01:09
Hi..
How to run SQL Agent Jobs sequntially.
i.e if i have 2 jobs job1 and Job2
I will schedule Job1 everyday/some period
Once job1 is completed successfully then automatically job2 has to run.
Or should i call Second Job's stored procedure in job1's stored procedure.
What is the best way.?
plz. guide me.
TIA.

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-12-15 : 08:25:12
how about to put ALL steps in ONE job?


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

gangadhara.ms
Aged Yak Warrior

549 Posts

Posted - 2009-12-15 : 09:21:06
Hi,

You can create flow of execution in SSIS package,Suppose if u want to execute proc 1 at some time x after completion of the task1 you can run the task2.

Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-12-15 : 15:00:27
Or make a third job that starts the other two jobs in the right order.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -