I’m trying to login to a SQL Server instance from the server it runs on while remoted in as myself.
I keep getting the standard login failed error and in the error log I’m seeing “Error: 18456, Severity: 14, State: 11.”
The login is using windows authentication – here’s the weird bit. I can login fine from my own machine using the same authentication, just not when I’m on the machine the database is installed on.
Any ideas?
Thanks,
Dave
How does UAC work?
When you’re logged in locally your administrator token is stripped. Since you granted access to your instance to
BUILTIN\Administrators, you are locked out of the instance. When authenticating remotely the administrator token is preserved and you gain access. You would gain access if you’d choose to RunAs\Administrator when starting your application (SSMS?).The solution is to grant yourself access explicitly: