Solved

sql  agent jobs.

Posted on 2016-10-19
2
35 Views
Last Modified: 2016-11-03
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
Comment
Question by:jamesmetcalf74
2 Comments
 
LVL 46

Accepted Solution

by:
Vitor Montalvão earned 500 total points
ID: 41850227
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now