running status for jobs

Hello all,

I would like to know how to how to know through sql queries if a job
that was processed is still running...

I tried to use msdb..systasks but it doesn't seem to help (status not
running and status running only).

Thanks in advance for your answer.

Andy
Andy.H.Kwok [ Fr, 21 September 2007 11:34 ] [ ID #1826101 ]

Re: running status for jobs

Hi

You could use "master.dbo.xp_sqlagent_enum_jobs"
--

Jack Vamvas
___________________________________
Need an IT job? http://www.ITjobfeed.com/SQL




<Andy.H.Kwok [at] gmail.com> wrote in message
news:1190367292.261350.224760 [at] r29g2000hsg.googlegroups.com.. .
> Hello all,
>
> I would like to know how to how to know through sql queries if a job
> that was processed is still running...
>
> I tried to use msdb..systasks but it doesn't seem to help (status not
> running and status running only).
>
> Thanks in advance for your answer.
>
> Andy
>
Jack Vamvas [ Fr, 21 September 2007 16:05 ] [ ID #1826104 ]
Datenbanken » comp.databases.ms-sqlserver » running status for jobs

Vorheriges Thema: Altova Software v2008 (with MS SQL Server support) is now available
Nächstes Thema: Delete or detach a Suspect database