When running or upgrading to a newer SQL agent (v21 or v24), jobs fail with a database driver error related to login triggers. The following shows up in the job report:
2024-09-26 19:46:24 - U02012031 The database driver returned the following error message:
2024-09-26 19:46:24 Logon failed for login '####' due to trigger execution.
The error occurs because login triggers defined on the MS SQL database block the connection from newer JDBC drivers or Java versions used by the updated agent. Newer versions often have increased security requirements that trigger these database-level restrictions.
Identify and evaluate the login triggers on the database.
sqljdbc_12 to sqljdbc_9) in the agent's jdbc folder to bypass certain trigger executions, though addressing the trigger directly is the recommended long-term solution.auth_dll is present in the agent bin directory.
Note: Validate the driver version, which is located at the jdbc folder and that the auth_dll is in the bin directory.