Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Had a job failure but it doesn't appear in the job history Expand / Collapse
Posted Friday, March 8, 2013 9:36 AM


Group: General Forum Members
Last Login: Monday, November 28, 2016 4:13 PM
Points: 171, Visits: 855

I am documenting job failures in the last two months and I cannot find the one that we had in that period. I looked in the job history and also in the event logs. Can a job fail without recording it? Is there something I have to set to make it write to the job history (I've never known that to be the case)?

Thank you in advance.
Post #1428655
Posted Tuesday, April 2, 2013 1:16 PM



Group: General Forum Members
Last Login: Wednesday, May 25, 2016 4:34 AM
Points: 1,600, Visits: 1,190
The job history cycles, ensure that the retention period is high enough and rows per job is set. This can be tricky if you have loads of jobs on your server.

There's no kill switch on awesome!
Post #1438070
Posted Tuesday, April 2, 2013 11:50 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Monday, January 4, 2016 10:41 PM
Points: 65, Visits: 434

There is a default trace available You can use the sys.traces table to see the max file size and no of file allowed before recycling of error logs using the below query

select * from sys.traces

max_size colum is Maximum trace file size limit in megabytes (MB). And max_files colum specifies the maximum number of rollover files in case the trace is a rollover.

If you want to find the location where your error logs are stored , you can use the below query and make modifications accordingly to find the type of event you are looking into :

--list current file path, events and columns of the default trace
path AS TraceFilePath , AS EventCategory , AS EventClassName , AS ColumnName
FROM sys.traces AS t
JOIN sys.trace_events AS tevent ON tdef.eventid = tevent.trace_event_id
JOIN sys.trace_categories AS tcat ON tcat.category_id = tevent.category_id
JOIN sys.trace_columns AS tcolumn ON tcolumn.trace_column_id = tdef.columnid
WHERE t.is_default = 1 --default trace
AND t.status= 1 --running
--AND like 'Object:Deleted' -- Use this filter to filter out specific incidents
ORDER BY TraceFilePath ,
EventCategory ,
EventClassName ,
ColumnName ;

Hope this helps you..!!
Post #1438175
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse