How to change SQL Agent Job history limits on Linux?

Anonymous
2020-10-27T19:39:56.437+00:00

Hi everyone,

Is it possible to set job history size limits on SQL Server running on Linux? I cannot do it using the UI in SSMS (as described in SQL Server docs), it returns an error when I try to apply changes.

Calling SP msdb.dbo.sp_set_sqlagent_properties also does not work on Linux, it returns A severe error occurred on the current command. The results, if any, should be discarded.

I also tried looking at mssql-conf in documentation of SQL Server for Linux here, but I did not find any mention of history retention there.

Any help would be much appreciated, default limit of history log size is 1000 rows, so I cannot even see 2 whole days of job executions right now.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,766 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Cris Zhan-MSFT 6,606 Reputation points
    2020-10-28T02:32:23.127+00:00

    Hi anonymous user,

    As you can see, we cannot find the job history options in the mssql-conf documentation. It seems that this configuration option for SQL Agent is not enabled on Linux at this time. Also please try to install the latest CU for your sql server instance and test again.

    I can see people reported this question on the Microsoft feedback site—This site will serve as a connecting point between you and Microsoft.
    https://feedback.azure.com/forums/908035-sql-server/suggestions/38614984-sql-server-2017-on-ubuntu-linux-agent-history-si

    you can vote and comment on this post to make your voice heard.


    If the answer is helpful, please click "Accept Answer" and upvote it.
    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.


  2. Reut Almog Talmi 1 Reputation point
    2022-05-03T09:21:26.533+00:00

    people ask about this in other forums as well:

    sql-agent-job-history-limits-on-linux

    0 comments No comments