2013-03-05 46 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

相關問題