Log File Viewer timeout

jisoo411
jisoo411 used Ask the Experts™
on
Hello,

When attempting to view the history on a SQL Agent job, the Log File Viewer attempts to pull log history then fails due to a "Timeout expired.  The timeout period has elapsed" message.  I extended my timeout settings during the database engine login but still running into the same error message.  I'm guessing that there's another timeout setting somewhere that overrides my login settings.  Is there such a thing?

Thanks,
Glen
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Try to rebuild the indexes on the MSDB tables relating to jobhistory i.e. sysjobs - it could be they are really fragmented which slows down the access to the data.
USE [msdb]
GO
ALTER INDEX [clust] ON [dbo].[sysjobhistory] REBUILD PARTITION = ALL WITH ( PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, IGNORE_DUP_KEY  = OFF, ONLINE = ON, SORT_IN_TEMPDB = OFF )
GO

Open in new window

Commented:
Actually I just found out how to truncate job history through the function below.  But I'll take a look at rebuilding indexes too.  The job I'm examining runs every 60 seconds so it has tons of history every day so checking the indexes wouldn't be a bad idea.

Thanks!
sp_purge_jobhistory @job_name or @job_id, @oldest_date

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial