简体   繁体   English

SQL Server身份验证登录问题

[英]SQL Server authentication login issue

I am running SQL Server 2012, and currently I am logged into it successfully, and am trying to connect to the server on the server management studio. 我正在运行SQL Server 2012,当前已成功登录,并且尝试连接到服务器管理工​​作室上的服务器。 I want the SQL Server authentication, but whenever I attempt to log in, I get the error below: 我需要SQL Server身份验证,但是每当尝试登录时,都会出现以下错误:

Login failed for 'dleathrum'. 无法登录“ dleathrum”。 (Microsoft SQL Server, Error: 18456) (Microsoft SQL Server,错误:18456)

I am using the same login that just got me logged into the server, however I cannot use it for the authentication. 我使用的登录名与刚登录服务器时使用的登录名相同,但是无法用于身份验证。 Has anyone else run into this issue? 还有其他人遇到这个问题吗?

The MSDN has all the erro codes for this kind of error, but You need to know the state of the error. MSDN具有用于此类错误的所有错误代码,但是您需要知道错误的状态。

Here is a link with all the possible states: 这是所有可能状态的链接:

https://msdn.microsoft.com/en-us/library/cc645917.aspx https://msdn.microsoft.com/en-us/library/cc645917.aspx

In default, only Windows Authentication is enabled on SQL server. 默认情况下,在SQL Server上仅启用Windows身份验证。 Try selecting mixed mode authentication. 尝试选择混合模式身份验证。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM