Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logon failed for login 'user' due to trigger execution

Tags:

sql

I am getting this error randomly on an asp.net web application I have deployed. I am not using any triggers in the database so I am not sure what to do. This came up over the weekend when no one was in the application, it just randomly happened. Please help this is mission critical

This is the first instance of where I get the error:

  public static Guid LoginUser
    {
        get
        {
            Guid g = new Guid();
            MembershipUser m = Membership.GetUser();
            if (m != null)
                g = (Guid)m.ProviderUserKey;

            return g;
        }
    }
like image 564
EvanGWatkins Avatar asked Dec 17 '22 21:12

EvanGWatkins


1 Answers

Login failed comes is generated at the server level, not the database level.

That is, you may have a LOGON trigger. You'd check for this in sys.server_triggers.

Now, there is at least one known issue described on MS Connect as well as some investigation+potential fix by Pinal Dave (YMMV)

like image 113
gbn Avatar answered Dec 28 '22 06:12

gbn