How to: Stop SQL Server Agent (net Commands)

The SQL Server Agent service can be stopped using Microsoft Windows net commands.

To stop the default instance of SQL Server Agent

  1. From a command prompt, enter one of the following commands:

    net stop "SQL Server Agent (MSSQLSERVER)"

    -or-

    net stop SQLSERVERAGENT

To stop a named instance of SQL Server Agent

  1. From a command prompt, enter one of the following commands. Replace instancename with the name of the instance you want to manage.

    net stop "SQL Server Agent (instancename)"

    -or-

    **net stop SQLAgent$**instancename

See Also

Tasks

How to: Start SQL Server Agent (net Commands)
How to: Stop SQL Server Agent (SQL Server Management Studio)
How to: Stop SQL Server Agent (SQL Server Configuration Manager)

Concepts

Stopping Services

Help and Information

Getting SQL Server 2005 Assistance