Symptoms
假設 linux 安裝上的 SQL Server 實例內已啟用Microsoft SQL Server Agent。 當您嘗試設定或變更作業記錄記錄的最大資料列數目,以及每個作業的作業記錄資料列數目上限時,可能會發生下列錯誤:
Msg 0, Level 11, State 0, Line LineNumber <>
目前命令上發生嚴重錯誤。 應捨棄結果 (如果有的話)。
Resolution
已將兩個新的 SQL Server Agent 屬性 sqlagent.jobhistorymaxrows 和 sqlagent.jobhistorymaxrowsperjob新增至組 mssql-conf 態公用程式。 這些設定可讓您分別設定作業記錄記錄的數據列數目上限,以及每個作業的作業記錄數據列數目上限。
例: sudo /opt/mssql/bin/mssql-conf set sqlagent.jobhistorymaxrows 1000sudo /opt/mssql/bin/mssql-conf set sqlagent.jobhistorymaxrowsperjob 100
Note
無法使用 SQL Server Management Studio (SSMS) 來設定這兩個屬性。
此問題已修正在 SQL Server 的下列累積更新中:
關於 SQL Server 的累積更新
SQL Server 的每個新累積更新都包含先前組建中的所有 Hotfix 和安全性修正。 建議您為 SQL Server 版本安裝最新的組建:
Status
Microsoft 已確認<適用於>一節所列的 Microsoft 產品確實有上述問題。
References
了解 Microsoft 用來說明軟體更新的術語。