Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Login failed for user 'Domain\UserID'. Reason: Could not find a login matching the name provided

What do i need to do for this error...Neither windows auth not sql server auth works.

Following is the entry in the SQL Server log:

2013-08-08 13:37:55.70 Logon Login failed for user 'Domain\UserID'. Reason: Could not find a login matching the name provided. [CLIENT: local machine] 2013-08-08 13:39:20.73 Logon Error: 18456, Severity: 14, State: 5.

thanks!!!

like image 800
Utpal Mattoo Avatar asked Aug 08 '13 18:08

Utpal Mattoo


People also ask

Could not find a login matching the name provided in SQL Server?

The error message is telling you exactly what's wrong. You are trying to connect to a SQL Server instance, but the account you are trying to use is not defined as a login for that instance.

What does SQL Server error 18456 mean?

The generic message “Login Failed for User (Microsoft SQL Server, Error: 18456)” means you entered invalid credentials when logging into SQL Server.


1 Answers

Did you add that windows login in SQL Server?

CREATE LOGIN [<domainName>\<login_name>] FROM WINDOWS;
GO

Update:

If you do not know the sa password and your windows login does not work. You will have to do one of the following:

  • Unistall and reinstall
  • Put the instance in single user mode (only works if you are an admin on the SQL Server machine), http://msdn.microsoft.com/en-us/library/dd207004.aspx
like image 160
Adam Haines Avatar answered Sep 17 '22 19:09

Adam Haines