What does it mean to have jobs with a null stop date?

前端 未结 1 1841
失恋的感觉
失恋的感觉 2021-01-12 20:13

I had used the following SQL to list out all jobs without a stop date. I thought that I could use this to find all active jobs. What I noticed is that I have a number of job

相关标签:
1条回答
  • 2021-01-12 21:02

    Each time the SQL Agent starts, it puts a new row in syssessions and subsequently any jobs run will get that session_id in sysjobactivity. For your jobs that have a null stop date, my guess is that they're not for the "current" session which would mean that they were still running when the agent was stopped.

    0 讨论(0)
提交回复
热议问题