Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Testing "Batch" Status

Status
Not open for further replies.

FaStOnE

Programmer
Jan 4, 2002
14
US
Is there a way to test for a job submitted by "msdb.dbo.sp_start_job" for completion? I kick off a Bulk Insert job that can run for 10-30 seconds. But, I need to process the result table in the next step. How can I monitor the job to test for the completed status so that I can continue with the next job step?

Thanks for your help!!

Rick
 
Have you checked out SYSJOBS and SYSJOBSTEPS? They are tables in the MSDB DB that have a lot of job related info...

Or how about this... Have the last step in this job insert a row into a table and your process loops until this table has the data in it that says you can continue...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top