MSSQL服务丢失后,恢复mssql服务的方法

 

  服务器突然MSSQL的服务丢了,用下面这个方法,不用重装MSSQLserver了

  sc create MSSQLSERVER binpath= "\"C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\sqlservr.exe\" -sMSSQLSERVER" displayname= "SQL Server (MSSQLSERVER)" depend= Tcpip start= auto

  sc create SQLSERVERAGENT binpath= "\"C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\SQLAGENT90.EXE\" -i MSSQLSERVER" displayname= "SQL Server Agent (MSSQLSERVER)" depend= Tcpip start= auto

 

 

 

posted @ 2022-08-25 15:27  zhihua09  阅读(87)  评论(0编辑  收藏  举报