All the articles over the years tell me that disabling sa wont affect any jobs owned and run by sa. I'm running the SSMS builtin Maint wizard job: "Misc Cleanup.Subplan_1" and "DB Integrity Check.Subplan_1" and also a Ola Hallengren "Index Optimize and stats" job. All of them fail since I disabled the sa account. If I re-enable sa the jobs all work.
Message:\
Executed as user: NT Service\SQLSERVERAGENT.
Microsoft (R) SQL Server Execute Package Utility Version 15.0.4420.2 for 64-bit Copyright (C) 2019 Microsoft. All rights reserved.
Started: 11:08:30 AM Error: 2025-03-17 11:08:30.84 Code: 0xC00291EC Source: {D9910D3F-29BA-4AFB-9499-EB09B2E4F937} Execute SQL Task Description: Failed to acquire connection "Local server connection". Connection may not be configured correctly or you may not have the right permissions on this connection. End Error
Warning: 2025-03-17 11:08:30.84 Code: 0x80019002 Source: OnPreExecute Description: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors. End Warning
Error: 2025-03-17 11:08:30.86 Code: 0xC0024104 Source: History Cleanup Task Description: The Execute method on the task returned error code 0x80131904 (Login failed for user 'sa'. Reason: The account is disabled.). The Execute method must succeed, and indicate the result using an "out" parameter. End Error
Warning: 2025-03-17 11:08:30.86 Code: 0x80019002 Source: Subplan_1 Description: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (2) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors. End Warning
Error: 2025-03-17 11:08:30.86 Code: 0xC0024104 Source: {229E238E-F0DA-453A-AB7A-027524E534C9} Description: The Execute method on the task returned error code 0x80131904 (Login failed for user 'sa'. Reason: The account is disabled.). The Execute method must succeed, and indicate the result using an "out" parameter. End Error
Warning: 2025-03-17 11:08:30.86 Code: 0x80019002 Source: OnPostExecute Description: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (2) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors. End Warning
DTExec: The package execution returned DTSER_FAILURE (1).
Started: 11:08:30 AM Finished: 11:08:30 AM Elapsed: 0.422 seconds. The package execution failed. The step failed.