Solved

SQL Server 2005 SQL Server Agent job not logging history.

Posted on 2007-11-16
6
1,779 Views
Last Modified: 2012-08-13
I have a particular job that isn't recording any history.  Either when it runs successfully or when it fails.  Other jobs on the same instance are recording history just fine.  Anyone have any idea where to begin looking?
0
Comment
Question by:lostboyinsofla
[X]
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
  • 3
  • 2
6 Comments
 
LVL 10

Expert Comment

by:AustinSeven
ID: 20297732
I'm not aware of any way to configure a specific job to stop logging history.   It's an unusual problem.   Try scripting out the job, deleting the job and then re-creating it by running the script.   Alternatively, if it's a simple job, start from scratch and manually create the job, job step(s) and schedule.   Also, does restarting the Agent service have an effect?

AustinSeven
0
 
LVL 43

Accepted Solution

by:
Eugene Z earned 500 total points
ID: 20297917
make sure you have fresh sp for sql server 2005 (at least sp1)
---
in SSMS -> open your server-> find sql Server agent -> right click on sqlserver agent-> open sql Server agent properties->
select page->click ' History'->make sure 'Limit size of job history log' is checked
and Max set too (if you are not space limited -> select max job history rows per job 1000
Max job history log size 10000
and try again... post result
0
 

Author Comment

by:lostboyinsofla
ID: 20298064
My History properties were set to 1000 and 100 respectively.  I changed the max to 1000 because that is the high limit SQL server imposes.  The max was previously set to 100.

Still doesn't explain why NO history had been recorded though.
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
LVL 43

Expert Comment

by:Eugene Z
ID: 20298332
Can you see history?


what service pack  do you have?
---
also if somebody deleted data from  sysjobhistory table
or manually from job

---

check
http://sqlforums.windowsitpro.com/web/forum/messageview.aspx?catid=60&threadid=87325&enterthread=y
0
 

Author Comment

by:lostboyinsofla
ID: 20299466
I can't see any history on that specific job but can on others.  I'm running SP2.  No one has deleted the history.
0
 
LVL 43

Expert Comment

by:Eugene Z
ID: 20300070
-check sqlagent log errors and it may help:
     if it did not help:
                    - try to restart the sqlagent
                                         if it didnot help:
                                                  - script the job\ delete-recreate it: test
Post results
0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

In this article I will describe the Backup & Restore 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.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

710 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