Starting, Stopping, and Configuring SQL Server Agent

SQL Server Agent runs as a service, and it is used to schedule jobs, alerts, and other automated tasks. After you have scheduled automated tasks, you will usually want SQL Server Agent to start automatically when the system starts. This ensures that the scheduled tasks are performed as expected. Using SQL Server Configuration Manager, you can control the related service (SQLServerAgent or SQLAgent$instancename) just as you do the SQL Server service. For details, see the section titled "Configuring SQL Server Services" in Chapter 3.

You use SQL Server Management Studio to configure SQL Server Agent. Chapter 15, covers the agent configuration in detail, but the basic steps are as follows:

  1. Connect to the Database Engine on the server you want to configure. You can do this in Registered Servers view by double-clicking the server entry, or you can use Object Explorer view. In Object Explorer view, click Connect, and then select Database Engine to display the Connect To Server dialog box, which you can use to connect to the server.

  2. Right-click the SQL Server Agent node, and then select Properties from the shortcut menu. You can now configure SQL Server Agent. Keep in mind that if the service is not running, you will need to start it before you can manage its properties.

  3. The SQL Server Agent shortcut menu also lets you manage the SQL Server Agent service. Select Start, Stop, or Restart as appropriate.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset