

can be returned in the following situations. Server is configured for Windows authentication only.


The error reason An attempt to login using SQL authentication failed. Other error states exist and signify an unexpected internal processing error. Another cause is when SIDs do not match.įailure due to empty user name or password.ĭatabase requested by user does not exist. When SQL Server is set to use Windows Authentication only, and a client attempts to log in using SQL authentication. Login is valid login, but server access failed.Ĭould not find database requested by user. To connect, start the connecting program using the Run as administrator option, and then add the Windows user to SQL Server as a specific login. One possible cause of this error is when the Windows user has access to SQL Server as a member of the local administrators group, but Windows is not providing administrator credentials. Login is valid, but server access failed. Login is disabled, and the password is incorrect. Contact your SQL Server administrator for more information.Īn attempt was made to use a Windows login name with SQL Server Authentication. This state usually means you do not have permission to receive the error details. Compare the error state to the following list to determine the reason for the login failure.

However, in the SQL Server error log, a corresponding error contains an error state that maps to an authentication failure condition. To increase security, the error message that is returned to the client deliberately hides the nature of the authentication error. "Login failed for user ''." Additional Error Information The following message might also be returned: (Microsoft SQL Server, Error: 18456)".Īdditional information returned to the client includes the following: When a connection attempt is rejected because of an authentication failure that involves a bad password or user name, a message similar to the following is returned to the client: "Login failed for user ''. Applies to: SQL Server (all supported versions) Details Attribute
