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