用命令启动或停止SQL Server 2005 服务

用命令启动或停止SQL 2005批处理。


STOP:

@echo off
@ECHO停止SQL Server 2005 服务
net stop "SQL Server (MSSQLSERVER)"
net stop "SQL Server Analysis Services (MSSQLSERVER)"
net stop "SQL Server Browser" net stop "SQL Server FullText Search (MSSQLSERVER)"
@ECHO 停止完毕 按任意键继续
pause
exit



START:

@echo off
@ECHO启动SQL Server 2005 服务
net start "SQL Server (MSSQLSERVER)"
net start "SQL Server Analysis Services (MSSQLSERVER)"
net start "SQL Server Browser"
net start "SQL Server FullText Search (MSSQLSERVER)"
@ECHO 启动完毕 按任意键继续
pause
exit 

 

By:Colin(刘飞)

posted @ 2013-06-01 08:00  Colin.liu  阅读(460)  评论(0编辑  收藏  举报