Stop a service using Command Prompt

Madhu.b.rokkam
Posted by Madhu.b.rokkam under Others category on | Points: 40 | Views : 2752
In SQL server

Exec master.dbo.xp_cmdshell 'net stop SQLAgent'


In Command Prompt

C:\Windows\system32>net stop SQLAgent


Syntax

C:\Windows\system32>net stop ServiceName

Comments or Responses

Login to post response