Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Sql Server Agent Job Logs

Posted on 2014-09-03
3
339 Views
Last Modified: 2014-09-03
Hi All,

I have a bunch of jobs on a server.  Some of the jobs are not reporting any history.  I'm pretty sure this is due to the fact that there's a heart beat job running on the server (runs once a minute, every minute, every day).  

Is there a way to configure SQL to either (in order of preference)

1)  Not log the heartbeat job
2)  Limit the size of the jobs to X number of instances (eg: keep only a record of the last number of times run).
3)  Expand the log size to accommodate everything

Thanks in advanced.
0
Comment
Question by:Kyle Abrahams
3 Comments
 
LVL 48

Accepted Solution

by:
Vitor Montalvão earned 350 total points
ID: 40301393
3)  Expand the log size to accommodate everything

In SSMS go to SQL Server Agent and right-click for properties and make the changes you need in History.
Capture.PNG
0
 
LVL 69

Assisted Solution

by:Scott Pletcher
Scott Pletcher earned 150 total points
ID: 40301428
I prefer to uncheck the "Limit size" and specify a "Remove agent history" time period.  You can specify 3 months if you want.  That keeps all history for a full three months, rather than a raw row count, which could of course be inflated by frequently run jobs.
0
 
LVL 40

Author Closing Comment

by:Kyle Abrahams
ID: 40301520
Thanks guys.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL query and VBA 5 45
Remove last comma in SQL Server column with Type Of nvarchar(Max) 3 27
Negative isnull? 3 14
SQL Availablity Groups Shared Path 2 14
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

856 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