<small id='C1zVv'></small><noframes id='C1zVv'>

        <bdo id='C1zVv'></bdo><ul id='C1zVv'></ul>
      1. <legend id='C1zVv'><style id='C1zVv'><dir id='C1zVv'><q id='C1zVv'></q></dir></style></legend>
        <tfoot id='C1zVv'></tfoot>
        <i id='C1zVv'><tr id='C1zVv'><dt id='C1zVv'><q id='C1zVv'><span id='C1zVv'><b id='C1zVv'><form id='C1zVv'><ins id='C1zVv'></ins><ul id='C1zVv'></ul><sub id='C1zVv'></sub></form><legend id='C1zVv'></legend><bdo id='C1zVv'><pre id='C1zVv'><center id='C1zVv'></center></pre></bdo></b><th id='C1zVv'></th></span></q></dt></tr></i><div id='C1zVv'><tfoot id='C1zVv'></tfoot><dl id='C1zVv'><fieldset id='C1zVv'></fieldset></dl></div>
      2. 尝试使用 SQL 身份验证登录失败

        时间:2023-10-10

        <small id='8lnBV'></small><noframes id='8lnBV'>

                <legend id='8lnBV'><style id='8lnBV'><dir id='8lnBV'><q id='8lnBV'></q></dir></style></legend>
                <i id='8lnBV'><tr id='8lnBV'><dt id='8lnBV'><q id='8lnBV'><span id='8lnBV'><b id='8lnBV'><form id='8lnBV'><ins id='8lnBV'></ins><ul id='8lnBV'></ul><sub id='8lnBV'></sub></form><legend id='8lnBV'></legend><bdo id='8lnBV'><pre id='8lnBV'><center id='8lnBV'></center></pre></bdo></b><th id='8lnBV'></th></span></q></dt></tr></i><div id='8lnBV'><tfoot id='8lnBV'></tfoot><dl id='8lnBV'><fieldset id='8lnBV'></fieldset></dl></div>

                • <bdo id='8lnBV'></bdo><ul id='8lnBV'></ul>

                  <tfoot id='8lnBV'></tfoot>
                    <tbody id='8lnBV'></tbody>
                • 本文介绍了尝试使用 SQL 身份验证登录失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试使用sa"用户名及其密码连接到 SQL Server 2008.在 SQL Server 日志文件中,我看到此错误:

                  I am trying to connect to SQL Server 2008 using 'sa' username and its password. In the SQL Server log file I see this error:

                  用户sa"登录失败.原因:尝试使用 SQL 登录认证失败.服务器配置为 Windows 身份验证仅.

                  Login failed for user 'sa'. Reason: An attempt to login using SQL authentication failed. Server is configured for Windows authentication only.

                  当我右键单击服务器时 -> 属性 -> 安全性选择了SQL Server 和 Windows 身份验证模式".
                  我认为这是sa"用户的问题,所以我做了:

                  When I right-clicked on the server -> Properties -> Security "SQL Server and Windows authentication mode" is chosen.
                  I thought it's a problem with the 'sa' user so I did:

                  ALTER LOGIN sa ENABLE ;
                  GO
                  ALTER LOGIN sa WITH PASSWORD = '<enterStrongPasswordHere>' ;
                  GO
                  

                  但这没有帮助.
                  还能是什么?

                  But it didn't help.
                  What else can it be?

                  推荐答案

                  根据启用 混合模式身份验证

                  有另一篇文章(底部的用户评论)引用您可以查看的注册表项;它还说您需要在更改后重新启动服务.

                  There is another article (user comment at the bottom) referencing a registry key that you can look at; it also says you will need to restart the service once you have changed it.

                  来自第一个链接:

                  更改安全认证模式:

                  • 在 SQL Server Management Studio 对象资源管理器中,右键单击服务器,然后单击属性.

                  • In SQL Server Management Studio Object Explorer, right-click the server, and then click Properties.

                  在安全"页面的服务器身份验证"下,选择新的服务器身份验证模式,然后单击确定".

                  On the Security page, under Server authentication, select the new server authentication mode, and then click OK.

                  在 SQL Server Management Studio 对话框中,单击确定"以确认重新启动 SQL Server 的要求.

                  In the SQL Server Management Studio dialog box, click OK to acknowledge the requirement to restart SQL Server.

                  从 SQL Server Management Studio 重新启动 SQL Server

                  • 在对象资源管理器中,右键单击您的服务器,然后单击重新启动.如果 SQL Server 代理正在运行,则还必须重新启动它.

                  这篇关于尝试使用 SQL 身份验证登录失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:从字符串 sql server 中删除数字 下一篇:如何在 sql server 中对行号进行内部联接

                  相关文章

                  1. <tfoot id='xqXm1'></tfoot>

                    <i id='xqXm1'><tr id='xqXm1'><dt id='xqXm1'><q id='xqXm1'><span id='xqXm1'><b id='xqXm1'><form id='xqXm1'><ins id='xqXm1'></ins><ul id='xqXm1'></ul><sub id='xqXm1'></sub></form><legend id='xqXm1'></legend><bdo id='xqXm1'><pre id='xqXm1'><center id='xqXm1'></center></pre></bdo></b><th id='xqXm1'></th></span></q></dt></tr></i><div id='xqXm1'><tfoot id='xqXm1'></tfoot><dl id='xqXm1'><fieldset id='xqXm1'></fieldset></dl></div>

                      <bdo id='xqXm1'></bdo><ul id='xqXm1'></ul>
                  2. <legend id='xqXm1'><style id='xqXm1'><dir id='xqXm1'><q id='xqXm1'></q></dir></style></legend>

                    <small id='xqXm1'></small><noframes id='xqXm1'>