• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 68
  • Last Modified:

sql agent jobs.

I have a sql server that has a partition (partition houses the ldf and mdf's only) that sets off alerts during the night.   the alert is low disk space.  it gets down to about 1 gig of free space at around 1:30 am.    When i come in, in the morning, the same partition has about 10 gigs of free space.

There are a lot of jobs in the sql server agent section of ssms.  I was wondering if there was a way for me to see all the start times for these jobs and tell which one might be using up all the disk space during the middle of the night without me digging into every job.  

If someone thinks i am going down the wrong trail... please advise.  if someone knows a query that will show me all sql jobs and what times they start.... that would be great.  i do have maintenance plans but they fire off 4 hours after i get the notification of low disk space so I don't think its a maintenance plan.

thanks everyone
0
jamesmetcalf74
Asked:
jamesmetcalf74
1 Solution
 
Vitor MontalvãoMSSQL Senior EngineerCommented:
SQL Agent jobs information are stored in msdb.
Check for dbo.sysjobs and dbo.sysjobhistory. A join between these two tables should give you some information:
SELECT *
FROM msdb.dbo.sysjobs j
    INNER JOIN msdb.dbo.sysjobhistory h ON j.job_id = h.job_id

Open in new window

0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now