November 21, 2008 at 12:01 pm
How can i run a sql job inside a sql job.
I have a 2 jobs where it alters a same huge table, i want to shedule both as i cudnt predict time when a job will be finished how can i start a 2nd job after finising the 1st one. since they are altering same table and if i shedule job what if both jobs starts altering same table at the same time.
November 21, 2008 at 4:24 pm
Invoke the second job on completion of first job by calling it under second step by making use of sp_start_job stored procedure.
http://technet.microsoft.com/en-us/library/ms186757(SQL.90).aspx
HTH,
MJ
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy