2015-04-24 32 views
2

我錯誤地殺死了sqlserver.exe過程中Task Manager > Process > (show processes by all users) > sqlserver.exe誤殺了任務管理器中的sqlserver.exe進程,如何重啓呢?

現在我的數據庫沒有連接,管理工作室和所有的應用程序顯示此錯誤

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.)

即使在配置管理器,該服務沒有顯示出來..請幫助,因爲我需要訪問它。數據在這種情況下非常重要..

回答

5

你可以這樣做:

To start the default instance of SQL Server

On the Start menu, point to All Programs, point to Microsoft SQL Server 2008 R2, point to Configuration Tools, and then click SQL Server Configuration Manager.

In SQL Server Configuration Manager, in the left pane, click SQL Server Services.

In the details pane, right-click SQL Server (MSSQLServer), and then click Start. A green arrow on the icon next to the server name and on the toolbar indicates that the server started successfully.

Click OK to close SQL Server Configuration Manager.

To start a named instance of SQL Server

On the Start menu, point to All Programs, point to Microsoft SQL Server 2008 R2, point to Configuration Tools, and then click SQL Server Configuration Manager.

In SQL Server Configuration Manager, in the left pane, click SQL Server.

In the details pane, right-click the named instance of SQL Server, and then click Start. A green arrow on the icon next to the server name and on the toolbar indicates that the server started successfully.

Click OK to close SQL Server Configuration Manager.

或者,您可以重新啓動服務器,假設你已經將服務設置爲自動啓動。

或者你也可以進入服務視圖類型服務和SQLServer服務右鍵單擊並創下重啓

More information here

2

打開服務窗口,開始 - >運行 - > services.msc。在那裏你可以找到所有與SQL開始的SQLserver相關的服務。

您殺死的進程可以通過啓動SQL Server (MSSQLSERVER)服務啓動。

你可以開始用鼠標右鍵單擊服務 - >啓動

0

PowerShell來啓動默認實例:

start-service mssqlserver; 

如果你有一個命名實例,首先執行get-service *sql*以確定服務的名稱。注意:您可能需要將名稱用單引號括起來,因爲它可能包含美元符號。

相關問題