简体   繁体   English

Windows Server 2012中的SQL Server登录失败

[英]SQL Server login failed in Windows Server 2012

I have a problem to login to SQL Server 2014 Express edition using a SQL Server user. 我使用SQL Server用户登录SQL Server 2014 Express版时遇到问题。

I have this problem in Windows Server 2012. In normal Windows machine I can create user and login. 我在Windows Server 2012中有此问题。在普通的Windows计算机中,我可以创建用户并登录。 I changed the authentication mode to mix and did the all thing in Internet but still I got login error. 我将身份验证模式更改为混合模式,并在Internet中完成了所有操作,但仍然出现登录错误。

Error Number: 18456 错误号:18456
Severity: 14 严重程度:14
State: 1 状态:1
Line Number: 65536 行号:65536

If anyone can please help me. 如果有人可以帮助我。

How are you trying to connect? 您如何尝试连接? Is there any connection string? 是否有任何连接字符串? And Do you check connectting with udl file. 并且您检查与udl文件的连接。

For testing with udl file follow below: 要使用udl文件进行测试,请执行以下操作:

  1. Create a new txt file. 创建一个新的txt文件。
  2. Change its extension to udl . 将其扩展名更改为udl
  3. Run it. 运行。
  4. Select Microsoft OLE DB Provider for SQL Server in Provider tab. 在“ Provider选项卡中选择Microsoft OLE DB Provider for SQL Server Provider
  5. Enter your entries. 输入您的条目。

Service of SQL Server (MSSQLSERVER) must be started in your services. 必须在您的服务中启动SQL Server (MSSQLSERVER)服务SQL Server (MSSQLSERVER)

If udl file works, I think you need to reinstall SQL Server. 如果udl文件有效,我认为您需要重新安装SQL Server。 [from comment] [来自评论]

I found the problem. 我发现了问题。 It was conflict with previous installation instant. 它与先前的安装即时冲突。 After I remove everything and reinstall SQL again make it work. 在删除所有内容并再次重新安装SQL之后,使其开始工作。

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

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