2013-03-05 44 views
11

SQL Server一直工作正常,但自从星期五以来,我一直无法连接到SSMS中的数据库引擎。这恰好与我在Windows更新期间不得不关闭笔记本电脑,因为它似乎挂起(我不知道这两者是否相关)。无法让SQL Server通过SSMS启动或连接到本地数据库引擎

从此我:

  • 从我的机器
  • 安装了SQL Server 2012已经回到一个还原点失败的更新
  • 删除的SQL Server 2008之前在我的机器。这种失败的负荷
  • 这是从我的机器
  • 重做标记SQL Server中删除所有失败的Windows更新中
  • 安装了SQL Server 2012,再次未能上载
  • 创建一个自签名证书(http://technet.microsoft.com/en-us/library/cc753127(v=WS.10).aspx
  • 试图从服务和SSCM启动SQL Server没有运气
  • 尝试了SQL Server的各种登录选项 - 在本地系统下服务将启动,但我仍然无法连接到SSMS中的数据库引擎
  • 阅读无尽的帖子和文章

任何人都可以帮助我在我的机器上启动SQL Server,然后使用SSMS连接到数据库引擎吗?

故障日志为安装提供了以下信息:

2013-03-05 12:17:37.34 Server Microsoft SQL Server 2012 (SP1) - 11.0.3128.0 (X64) Dec 28 2012 20:23:12 Copyright (c) Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) 
2013-03-05 12:17:37.34 Server (c) Microsoft Corporation. 
2013-03-05 12:17:37.34 Server All rights reserved. 
2013-03-05 12:17:37.34 Server Server process ID is 5116. 
2013-03-05 12:17:37.34 Server System Manufacturer: 'SAMSUNG ELECTRONICS CO., LTD.', System Model: 'RV411/RV511/E3511/S3511/RV711'. 
2013-03-05 12:17:37.34 Server Authentication mode is WINDOWS-ONLY. 
2013-03-05 12:17:37.34 Server Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\ERRORLOG'. 
2013-03-05 12:17:37.34 Server The service account is 'NT Service\MSSQLSERVER'. This is an informational message; no user action is required. 
2013-03-05 12:17:37.35 Server Registry startup parameters: 
-d C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\master.mdf  
-e C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\ERRORLOG  
-l C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\mastlog.ldf 
2013-03-05 12:17:37.35 Server Command Line Startup Parameters:  
-s "MSSQLSERVER" 
-m "SqlSetup" 
-Q 
-q "Latin1_General_CI_AS" 
-T 4022 
-T 4010 
-T 3659 
-T 3610 
-T 8015 
-T 902 
2013-03-05 12:17:37.69 Server SQL Server detected 1 sockets with 2 cores per socket and 4 logical processors per socket, 4 total logical processors; using 4 logical processors based on SQL Server licensing. This is an informational message; no user action is required. 
2013-03-05 12:17:37.69 Server SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required. 
2013-03-05 12:17:37.69 Server Detected 6004 MB of RAM. This is an informational message; no user action is required. 
2013-03-05 12:17:37.69 Server Using conventional memory in the memory manager. 
2013-03-05 12:17:38.02 Server Perfmon counters for resource governor pools and groups failed to initialize and are disabled. 
2013-03-05 12:17:38.73 Server Node configuration: node 0: CPU mask: 0x000000000000000f:0 Active CPU mask: 0x000000000000000f:0. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required. 
2013-03-05 12:17:38.75 Server Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. This is an informational message only. No user action is required. 
2013-03-05 12:17:38.75 Server Database Mirroring Transport is disabled in the endpoint configuration. 
2013-03-05 12:17:38.76 Server Software Usage Metrics is disabled. 
2013-03-05 12:17:38.92 spid4s Warning 
****************** 
2013-03-05 12:17:38.92 spid4s SQL Server started in single-user mode. This an informational message only. No user action is required. 
2013-03-05 12:17:39.07 spid4s Starting up database 'master'. 
2013-03-05 12:17:39.66 Server CLR version v4.0.30319 loaded. 
2013-03-05 12:17:40.35 spid4s SQL Server Audit is starting the audits. This is an informational message. No user action is required. 
2013-03-05 12:17:40.38 spid4s SQL Server Audit has started the audits. This is an informational message. No user action is required. 
2013-03-05 12:17:41.33 spid4s SQL Trace ID 1 was started by login "sa". 
2013-03-05 12:17:41.60 spid4s Server name is 'E2E-LAPTOP'. This is an informational message only. No user action is required. 
2013-03-05 12:17:41.82 spid12s Password policy update was successful. 
2013-03-05 12:17:41.87 spid12s Error: 17190, Severity: 16, State: 1. 
2013-03-05 12:17:41.87 spid12s Initializing the FallBack certificate failed with error code: 1, state: 20, error number: 0. 
2013-03-05 12:17:41.87 spid12s Unable to initialize SSL encryption because a valid certificate could not be found, and it is not possible to create a self-signed certificate. 
2013-03-05 12:17:42.00 spid12s Error: 17182, Severity: 16, State: 1. 
2013-03-05 12:17:42.00 spid12s TDSSNIClient initialization failed with error 0x80092004, status code 0x80. Reason: Unable to initialize SSL support. Cannot find object or property. 
2013-03-05 12:17:42.00 spid12s Error: 17182, Severity: 16, State: 1. 
2013-03-05 12:17:42.00 spid12s TDSSNIClient initialization failed with error 0x80092004, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors. Cannot find object or property. 
2013-03-05 12:17:42.00 spid12s Error: 17826, Severity: 18, State: 3. 
2013-03-05 12:17:42.00 spid12s Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log. 
2013-03-05 12:17:42.00 spid12s Error: 17120, Severity: 16, State: 1. 
2013-03-05 12:17:42.00 spid12s SQL Server could not spawn FRunCommunicationsManager thread. Check the SQL Server error log and the Windows event logs for information about possible related problems. 

2013年3月7日:我现在一边通过上一个闪亮的新的Windows 8的笔记本电脑上安装SQL服务器(使用完全相同的步骤加强这个问题因为我在错误的机器上尝试过)。当我有能量时,我会回来看看我能否在我的另一台机器上解决这个问题。如果我有任何成功,我会更新这篇文章。

+0

你有没有得到这个工作?谢谢!希望你做到了。 – Rachael 2013-10-03 19:04:37

+0

嗨Rachel,你能解决你的机器上的错误? – Abhijeet 2014-04-10 11:00:49

+0

不,我从来没有得到它的工作,尽管尝试一切建议。最后,我放弃了,并在另一台机器上运行它。 :( – 2014-04-11 16:53:04

回答

1

备份注册表


这仅仅是一种选择 - 一般最后的手段 - 考​​虑什么后果你自己

不要采取这种建议尽管我已经看到您的注册机构并知道您的机器的确切状态


总之,第一个错误,你所看到的:

2013-03-05 12:17:41.87 spid12s Error: 17190, Severity: 16, State: 1.

2013-03-05 12:17:41.87 spid12s Initializing the FallBack certificate failed with error code: 1, state: 20, error number: 0.

被周围的问题与keys that already exist in your registry。所以,做什么,我先说,备份注册表,然后删除键值:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server

,然后尝试重新安装的Microsoft SQL Server 2012如果这不起作用 - 你可能将需要备份您的机器数据并重建它。

+0

我会给你一个去,让你知道会发生什么,祝我好运! – 2013-03-05 18:50:04

+0

@RachelEdge,祝你好运! – 2013-03-05 18:51:21

+1

我试过这个,很不幸,它没有任何区别的安装 - 没有更好的但没有更坏)我用名称中的SQL Server卸载了所有程序,然后查看了注册表,在Microsoft SQL Server节点中没有留下太多内容,但我删除了它,还删除了MSSQLSERVER节点。完全相同的错误消息'等待数据库引擎恢复句柄失败'。卸载后我的计算机上保留了什么?错误消息提到了证书。我试图创建自签名证书,但没有任何区别。任何帮助赞赏 – 2013-03-06 13:19:15

1

您的错误似乎与您安装的证书有关。

本文建议更改SQL服务器将登录的服务,您可以在安装时或通过曲面配置管理工具执行此操作。

http://social.msdn.microsoft.com/Forums/en-US/sqlsecurity/thread/56f14665-3f00-41ff-b002-bb5e86b3f219/

+0

我已经尝试了SQL Server的各种登录。如果我以本地系统身份登录,但仍然无法通过SSMS连接到数据库引擎,则可以使服务运行。 – 2013-03-06 13:54:35

+0

如果你运行并无法登录,请尝试以下指南:http://blogs.ameriteach.com/chris-randall/2009/12/11/sql-server-2008-forgot-to-add-an -administrator-account.html?lastPage = true&postSubmitted = true,基本上你在做的是通过后门的单用户模式进入本地添加你的账户。 – RandomUs1r 2013-03-06 17:18:48

1

我知道这可能为时已晚,以帮助原来的海报,但我们有同样的问题,并没有什么,我们试图解决的问题。最后,我们与微软展开技术事件,这是我们提供的解决方案:

  • 取下面的注册表项的备份。

HKLM \ SOFTWARE \微软\加密\ MachineGuid 这个键最好有机器的GUID没有大括号,所以{XXXXXXXXXXXX-XXXXXXXX-XXXXXXXXXXXX}变为XXXXXXXXXXXX-XXXXXXXX -xxxxxxxxxxxx

  • 然后删除大括号。
  • 尝试重新启动并启动SQL服务。如果服务没有启动,请卸载并重新安装SQL。

上述解决方案在展示此问题的两台独立机器上工作。

+4

关键已经没有大括号,所以这不适合我。 – 2015-10-03 15:58:47

5

一个同事陷入了类似的问题 - 几乎有相同的错误日志。原因是他尝试使用系统帐户在域控制器上安装SQL服务器。如果您必须在域控制器上安装SQL服务器,请让SQL服务器服务在网络帐户下运行。 https://support.microsoft.com/en-us/kb/2032911

1

刚看到这个帖子,总之,你将需要申请的服务包和累积更新为它工作,在较新的操作系统的SSL证书被改为使用禁用SSL2,SSL3,等等。新的TLS1.2和SQL Server不支持它,你需要应用这些补丁来启用它的支持,它会再次运行。

+0

谢谢,但有这个问题的机器不再是使用,我没有在其他任何其他设备上的类似问题。 – 2016-11-14 18:25:53

相关问题