【Vegas原创】用批处理(BAT)开启关闭SQL Server服务
startSQL.bat:
net start "mssqlserver"
net start "sqlserveragent"
net start "Distributed Transaction Coordinator"
net start "MSSQLServerOLAPService"
net start "sqlbrowser"
net start "msftesql"
net start "msDtsServer"
net start "reportServer"
pause
net start "sqlserveragent"
net start "Distributed Transaction Coordinator"
net start "MSSQLServerOLAPService"
net start "sqlbrowser"
net start "msftesql"
net start "msDtsServer"
net start "reportServer"
pause
stopSQL.bat:
net stop "sqlserveragent"
net stop "mssqlserver"
net stop "Distributed Transaction Coordinator"
net stop "MSSQLServerOLAPService"
net stop "sqlbrowser"
net stop "msftesql"
net stop "msDtsServer"
net stop "reportServer"
pause
net stop "mssqlserver"
net stop "Distributed Transaction Coordinator"
net stop "MSSQLServerOLAPService"
net stop "sqlbrowser"
net stop "msftesql"
net stop "msDtsServer"
net stop "reportServer"
pause
喜欢请赞赏一下啦^_^