
Logon failed for login 'sa' due to Tigger execution

2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Cr BhargaviRank #420 · 5.9K reputationPosted Aug 21, 2023, 4:20 AM EDT
The error message you're encountering, "Logon failed for login 'sa' due to Trigger execution," typically indicates that there is a trigger in the database that is trying to execute a task using the 'sa' login (which is the system administrator account in Microsoft SQL Server), and the login attempt is failing. Review the logic of the trigger that is causing the issue. Make sure that it's correctly using the 'sa' login and that the credentials are accurate. If the trigger logic is using the 'sa' login, consider modifying the trigger to use a different login or method that is appropriate for the task. It's generally not recommended to use the 'sa' login in trigger logic due to security concerns.Verify if the trigger depends on any linked servers, databases, or resources that might be inaccessible or misconfigured. If you're not familiar with database administration and security practices, consider involving a database administrator or SQL Server expert to help troubleshoot and resolve the issue.
Mohammad HussainRank #513 · 4.8K reputationPosted Aug 24, 2023, 1:37 PM EDT
If you suspect a specific trigger is causing the issue, you can temporarily disable it to see if the logon failure stops.
DISABLE TRIGGER trigger_name ON table_name;