Operation Sql Server 2005 service at the command prompt
Start and stop services:
Start Sql Server 2005 service:
NET Start the MSSQLServer
or
sc start mssqlserver
stop Sql Server 2005 service: NET STOP the MSSQLServer or sc start mssqlserver
start Sql Server 2005 Reporting Services: NET Start the ReportServer or sc start reportserver
stop Sql Server 2005 Reporting Services: NET STOP the ReportServer or sc start reportserver
stop Sql Server 2005 service: NET STOP the MSSQLServer or sc start mssqlserver
start Sql Server 2005 Reporting Services: NET Start the ReportServer or sc start reportserver
stop Sql Server 2005 Reporting Services: NET STOP the ReportServer or sc start reportserver
Modify the startup type of the service:
The startup type Sql Server services to automatic:
sc config = Auto Start the MSSQLServer
The Sql Server services startup type to manual:
sc config = Start the MSSQLServer Demand
Sql Server service startup type is changed to Disable:
sc config = Start the MSSQLServer Disabled
Figure:
赠送2个命令^_^:
打开服务管理器:services.msc
打开IIS管理器:inetmgr
附删除服务:
对于不需要的服务,可以在注册表里删除或者在命令提示符下删除,例如用命令删除mysql服务
删除mysql服务:sc delete mysql
在注册表里删除:
展开以下三个分支:
HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services
HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001
HKEY_LOCAL_MACHINE/SYSTEM/ControlSet002
在这三个分支下找到需要删除的服务名,删除即可。