
Logon failed for login 'sa' due to Tigger execution


Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mohammad HussainPosted Aug 24, 2023, 5:37 PM
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;Cr BhargaviPosted Aug 21, 2023, 8:20 AM
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.