Here are a couple ways to stop and start the SQL Server service from a command line:
Option 1: use the NET START and NET STOP commands:
?View Code VBNET START MSSQLSERVER
?View Code VBNET STOP MSSQLSERVER
If you have a named instance, you will have to replace the ‘MSSQLSERVER’ with the proper service name, for example MSSQL$SQL2008 .