SQL SERVER Fix Error 17892 Logon failed for login due to trigger execution. Changed database context to 'master'.
Have you ever got and 17892 Error ?
Some extra prepared Junior was playing around and had created something that might lock out form your instance ?
Let's see how we can fix this ?
We can see from the start that a log on trigger is doing it's job !!! So in order to make use of a Dedicated Administrator Connection.
Log in to your host where the Sql Server service is running and open a command line prompt and connect to SQL Server using sqlcmd and -A option and
argument -d master which will directly enable me to log on to master database .
Find the trigger that holds the login
So here is the villain !!! Let's save the code and drop the trigger.(question why the trigger was created letter ! now free the Sql Server)