SQL Server job history log

DM 546 Reputation points
2022-10-01T01:26:54.303+00:00

We have several SQL Servers on which same job is running every hour. One one server it shows job history of even previous day; however on other; it doesn't show of previous day. How do I have to configure this. Thanks in advance.

SQL Server | Other
0 comments No comments
{count} votes

Accepted answer
  1. YufeiShao-msft 7,146 Reputation points
    2022-10-03T02:51:59.047+00:00

    Hi @DM

    Please check your properties of the SQL Server Agent, it has a "History" page where can be configured to limit the size of the job history log
    246816-image.png

    Or you need to check if you have a maintenance plan or any other that includes a task to delete history tables to only one day

    To get the history of the job, you can try to query sysjobhistory table and SQL Agent Job Activity Monitor

    -------------

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.