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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sp_help_job @execution_status 2 explanation

Status
Not open for further replies.

RichardHayes

Programmer
May 1, 2002
28
0
0
GB
I am supporting a remote SQL server based application which I can only interrogate over the phone via Access and ODBC, with users with no knowledge of SQL. I mention this so that you know that I am unable to look at anything that cannot be easily executed via the VBA immediate window.

In part of my code I start a SQL job using sp_start_job, which works fine. I then wait using a loop until the job is idle, using sp_help_job and @execution_status to check for status number 4 (idle). Unfortunately the job keeps going to status 2 "Waiting for thread" and remaining there.

I have searched high and low for an explanation for what this means, why it happened and how I can stop it, with no luck.

Any help would be greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top