[英]Cannot Login To Default SQL Server Instance
I brought my laptop home from work hoping I could get some tasks done over the weekend. 我将笔记本电脑从工作场所带回家,希望周末能完成一些任务。 Unfortunately, I couldn't login to SQL Server using
Windows Authentication
. 不幸的是,我无法使用
Windows Authentication
登录到SQL Server。 I've checked the SQL Server Configuration Manager and the instance ( MSSQLSERVER
) is set to Log On As Local System
, which supposedly means that I should be able to login fine using Windows Authentication... or am I missing something here? 我已经检查了SQL Server配置管理器 ,并且实例(
MSSQLSERVER
)设置为以Local System
登录 ,这意味着我应该能够使用Windows身份验证进行正常登录...还是我在这里缺少什么? Note that in the login window, I tried a lot of different combinations and it always keeps telling me that connection failed because the server is not accessible or I'm not authorized to access it. 请注意,在登录窗口中,我尝试了许多不同的组合,并且始终会告诉我连接失败,因为服务器不可访问或我无权访问它。
A little background about how the instance was installed: I installed and configured it myself. 有关实例如何安装的一些背景知识:我自己安装和配置了该实例。 I chose the
Mixed Authentication
mode and gave a password to the default sa
user (which isn't working either by the way). 我选择了“
Mixed Authentication
模式,并为默认的sa
用户提供了密码(该密码也无法使用)。 The thing I suspect could be the problem is the fact that I installed the SQL SERVER instance when I was logged in as my Domain User
at work ( DOMAIN\\UserName
). 我怀疑可能是该问题是由于我以工作中的
Domain User
( DOMAIN\\UserName
)登录后安装了SQL SERVER实例。 Now I'm at home and I do not have access to the LAN at the office, so I'm logged in as the {COMPUTERNAME}\\Kassem
user. 现在我在家,无法访问办公室的LAN,因此我以
{COMPUTERNAME}\\Kassem
用户身份登录。
Any thoughts? 有什么想法吗?
A windows account has to be added to SQL Server to have any rights. 必须将Windows帐户添加到SQL Server才能具有任何权限。 If you didn't add
{COMPUTERNAME}\\Kassem
, you can't login to SQL Server. 如果未添加
{COMPUTERNAME}\\Kassem
,则无法登录到SQL Server。
The recovery option here is the SA password, which should always work. 此处的恢复选项是SA密码,该密码应始终有效。
To connect to the default instance, connect to localhost
or .
要连接到默认实例,请连接到
localhost
或.
. 。 Connecting to
.\\MSSQLSERVER
won't work, even though MSSQLSERVER
is the default instance name. 即使
MSSQLSERVER
是默认实例名称,也无法连接到.\\MSSQLSERVER
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.