错误地杀死了任务管理器中的sqlserver.exe进程,如何重新启动它?

时间:2015-04-24 21:08:19

标签: sql-server

我错误地杀死了sqlserver.exe

中的Task Manager > Process > (show processes by all users) > sqlserver.exe进程

现在我的数据库没有连接,Management Studio和所有应用程序都显示此错误

  

建立与SQL Server的连接时发生与网络相关或特定于实例的错误。服务器未找到或无法访问。验证实例名称是否正确,以及SQL Server是否配置为允许远程连接。 (提供者:TCP提供者,错误:0 - 无法建立连接,因为目标计算机主动拒绝它。)

即使在配置管理器中,服务也没有显示出来..请帮助我,因为我需要访问它。这个例子中的数据非常重要。

3 个答案:

答案 0 :(得分:5)

You can do this by:

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.

Or you can reboot the server, assuming you have the services set to auto start.

Or you can go into the services view type Services and right click on the SQLServer service and hit restart

More information here

答案 1 :(得分:2)

打开服务窗口,开始 - >跑 - > SERVICES.MSC。在那里,您可以找到以SQL开头的所有SQLserver相关服务。

您可以通过启动SQL Server (MSSQLSERVER)服务来启动您杀死的进程。

您可以通过右键单击启动服务 - >开始

答案 2 :(得分:0)

powershell启动默认实例:

$( "#adminMenu" ).menu({
  items: "> :not(.ui-widget-header)"
  select: function(e, ui){
    alert("here")
    return false;
  }
});

如果您有命名实例,请先执行start-service mssqlserver; 确定服务名称。注意:您可能需要将名称用单引号括起来,因为它可能包含美元符号。