How do I find my work history in SQL Server 2012?

How do I find my work history in SQL Server 2012?

To view the job history log

  1. In Object Explorer, connect to an instance of the SQL Server Database Engine, and then expand that instance.
  2. Expand SQL Server Agent, and then expand Jobs.
  3. Right-click a job, and then click View History.
  4. In the Log File Viewer, view the job history.
  5. To update the job history, click Refresh.

How do I turn on SQL work history?

Using SQL Server Management Studio Right-click SQL Server Agent, and then select Properties. Select the History page, and then confirm that Limit size of job history log is checked. In the Maximum job history log size box, enter the maximum number of rows the job history log should allow.

Why is MY SQL Agent job history disappearing?

Today, I am going to cover why the job history is most likely disappearing on you. Typically there are two reasons why your SQL Agent Job History is missing. First, someone or a process is running sp_purge_jobhistory to purge the history. Typically, I find that this isn’t the reason why your history is disappearing randomly.

Are there any SQL jobs with no history?

We migrated to SQL 2012 and now a few SQL Jobs don’t seem to have job history (and I know they ran successfully). The jobs exist (msdb) in sysjobs. When I try to query the data in sysjobhistory, the record (job_ID) is not present.

How many history records does SQL Agent keep?

You will notice that the default setting is to only keep the last 1,000 history records for all the SQL Agent Jobs. The SQL Agent will also only keep 100 history records for a single job. It’s why we modified the Maximum job history rows per job property above for this demo.

How to get rid of no history in SQL Server?

I work on “Max history per job” * “Number of Jobs” + 10% <= Max Log Size. This leave room for a 10% increase in the number of jobs before you will start losing any history. Nothing in SQL Server is ever so complicated that with a little work it can’t be made more complicated.