快速启动停止SQL2008服务

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了快速启动停止SQL2008服务相关的知识,希望对你有一定的参考价值。

1、启动SQL Server 2008服务.bat

    @echo off
    @ ECHO 启动SQL Server 2008 服务
    pause
    net start "SQL Server (MSSQLSERVER)"
    net start "SQL Server Analysis Services (MSSQLSERVER)"
    net start "SQL Server FullText Search (MSSQLSERVER)"
    net start "SQL Server Integration Services"
    net start "SQL Server Reporting Services (MSSQLSERVER)"
    net start "SQL Server VSS Writer"
    @ ECHO 启动完毕
    pause
    exit 



2、停止SQL Server 2008服务.bat

    @echo off
    @ ECHO 停止SQL Server 2008 服务
    pause
    net stop "SQL Server (MSSQLSERVER)"
    net stop "SQL Server Analysis Services (MSSQLSERVER)"
    net stop "SQL Server FullText Search (MSSQLSERVER)"
    net stop "SQL Server Integration Services"
    net stop "SQL Server Reporting Services (MSSQLSERVER)"
    net stop "SQL Server VSS Writer"
    @ ECHO 停止完毕
    pause
    exit

 

以上是关于快速启动停止SQL2008服务的主要内容,如果未能解决你的问题,请参考以下文章

第一章SQL server2008安装与管理

Sql server 2005 服务启动很快又停止

sql server 服务无法启动

sqlserver服务无法启动不了

Winform进度条的问题,请高手指点

SQL Server 2008 R2 Express,服务在服务器上停止