Does anyone know how to programatically find the start time of a job that only has one step? The problem is, the job has not written any records to sysjobhistory yet, so no info is availabe as to when it started. xp_enum_jobs will tell you if it is running, but not when it started.
I am writing some code to help capture long running jobs and job steps so they can be addressed while they are running. Some jobs have only one step, so I can't tell when they started until they finished. We have jobs in both SQL Server 2000 and 2005, so cross compatability would be excellent.
Any help you can provide, or alternate approaches to tackling the problem (pretend like I have no software budget) would be much appreciated!
Thanks,
Dan
I am writing some code to help capture long running jobs and job steps so they can be addressed while they are running. Some jobs have only one step, so I can't tell when they started until they finished. We have jobs in both SQL Server 2000 and 2005, so cross compatability would be excellent.
Any help you can provide, or alternate approaches to tackling the problem (pretend like I have no software budget) would be much appreciated!
Thanks,
Dan