![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Has anyone written a script or know of a script I could run to tell me what SQL Agents jobs were running at a given point in time? Thanks in advance, Mark |
#3
| |||
| |||
|
|
Sullivan, SELECT DISTINCT job.name FROM msdb..sysjobhistory AS jh JOIN msdb..sysjobs AS job ON jh.job_id = job.job_id AND jh.run_status = 4 -- In Progress Look at the BOL for the sysjobhistory table to see the other values of run_status. Norman get DTS Package Search at http://www.gerasus.com/ SullivanYee wrote: Has anyone written a script or know of a script I could run to tell me what SQL Agents jobs were running at a given point in time? Thanks in advance, Mark |
#4
| |||
| |||
|
|
Actually I am looking for jobs that ran in the past for example at '20060812 12:45' "Norman Kelm" <norman (AT) no-spam (DOT) gerasus.com> wrote in message news:WzlEg.6847$o27.532 (AT) newssvr21 (DOT) news.prodigy.com... Sullivan, SELECT DISTINCT job.name FROM msdb..sysjobhistory AS jh JOIN msdb..sysjobs AS job ON jh.job_id = job.job_id AND jh.run_status = 4 -- In Progress Look at the BOL for the sysjobhistory table to see the other values of run_status. Norman get DTS Package Search at http://www.gerasus.com/ SullivanYee wrote: Has anyone written a script or know of a script I could run to tell me what SQL Agents jobs were running at a given point in time? Thanks in advance, Mark |
![]() |
| Thread Tools | |
| Display Modes | |
| |