Finding jobid from sysprocesses table.

  • I'm trying to schedule a job which would be running every morning and will check if any other jobs are running. I'm checking the sysprocesses table for program_name column and that would give me the job id. My issue being that when i convert this jobid to varbinary, it is different as compared to the jobid value in sysjobs. Please advise

  • Look at sp_help_job in BOL you can look for a job with a specific @execution_status. This should help.

  • Antares,

    Thanks a lot. Didn't think about that.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply