Misleading errors: “Server is configured for Windows authentication only.” But it’s not!

6

June 18, 2018 by Kenneth Fisher

In general, the errors SQL gives are highly useful. Of course every now and again you get one that’s just confounding. The other day I saw the following error in the log:

Login failed for user ”. Reason: An attempt to login using SQL authentication failed. Server is configured for Windows authentication only. [CLIENT: ]

This one confused me for a couple of reasons. First, the user ”. Why an empty user? That’s not really helpful. And second Server is configured for Windows authentication only.

So what the heck is going on? After a bit of searching I found the answer here.

The pertinent quote is this:

Bottom line, the application is trying to connect using Windows authentication, but using a blank/null username and password.

And I was able to reproduce the error just like the OP by using an ODBC connection with no user specified.

It seems that a blank username confused SQL as much as the error confused me.

Aren’t confusing errors fun?

6 thoughts on “Misleading errors: “Server is configured for Windows authentication only.” But it’s not!

  1. ddecasse's avatar ddecasse says:

    you can also see that error if it was installed for Windows only. you can create sql logins which will not work until after you make the pictured setting change and then restart SQL server. I have had a server admin or two make this mistake.

  2. Max N's avatar Max N says:

    THANK YOU!!!

  3. […] Misleading errors: “Server is configured … – SQL Studies […]

Leave a reply to ddecasse Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 3,976 other subscribers

Follow me on Twitter

Archives

ToadWorld Pro of the Month November 2013