无法使用 Windows 身份验证登录 SQL Server [英] Can't login to SQL Server with Windows Authentication

查看:70
本文介绍了无法使用 Windows 身份验证登录 SQL Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了 SQL Server 2012 并打开了 SQL Server Management Studio,当我尝试登录时出现此问题:

I've just installed SQL Server 2012 and open the SQL Server Management Studio and when I try to login this problem occurs:

无法连接到.....

我的问题是如何知道服务器名称是什么?

My question is how can I know what is the server name?

当我转到 SQL Server 配置管理器时,我找不到应该存在的 SQL Server 服务!!

And when I go to the SQL Server Configuration Manager I can't find the SQL Server services which should exist !!

有答案吗?

谢谢.

推荐答案

如果你安装了 SQL Express,正确的服务器名称是:

If you installed SQL Express, the correct server name is:

127.0.0.1\SQLEXPRESS

YOURMACHINENAME\SQLEXPRESS

如果这不起作用,您可以采取一些步骤:

If that does not work there are some steps you can take:

检查SQL Server Browser"windows服务是否已激活并正在运行:

  • 转到控制面板 -> 管理工具 -> 服务
  • 打开SQL Server Browser"服务并启用它(根据您的需要手动或自动设置)
  • 开始吧.


如果这也不起作用,您还可以检查是否在 SQL Server 实例中启用了 TCP/IP 协议.请按照以下步骤(针对 SS2012 进行测试)以确保:


If that too does not work, you can also check if the TCP/IP protocol is enabled in your SQL Server instance. Follow these steps (tested for SS2012) to make sure:

  • 在开始菜单\程序\Microsoft SQL Server 2012\配置工具\"中打开Sql Server 配置管理器"
  • 展开SQL Server 网络配置"
  • 进入 的协议"
  • 启用 TCP/IP

如果您有任何问题,请查看这篇博文 有关详细信息,因为它包含屏幕截图和更多信息.

If you have any problem, check this blog post for details, as it contains screenshots and much more info.

就是这样.

这篇关于无法使用 Windows 身份验证登录 SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆