SqlServer start and stop bar commands

Open database service command

@echo off
net start MSSQLSERVER
net start MSSQL$SQLEXPRESS
net start MSSQLServerOLAPService
net start MsDtsServer100
net start ReportServer
net start SQLWriter

Stop database service command

@echo off
 
net stop MSSQL$SQLEXPRESS
 

Guess you like

Origin blog.csdn.net/qq_33285360/article/details/109266132