17.06.2013 Views

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

❑ Write the information to the event log.<br />

❑ Automatically delete the job (to prevent executing it later and generally “clean up”).<br />

Let’s take a quick look at how to create operators in Management Studio.<br />

Creating an Operator<br />

If you’re going to make use of the notification features of the <strong>SQL</strong> Agent, then you must have an operator<br />

set up to define the specifics for who is notified. This side of things — the creation of operators —<br />

isn’t typically done through any kind of automated process or as part of the developed code; these are<br />

usually created manually by the DBA. We’ll go ahead and take a rather brief look at it here just to understand<br />

how it works in relation to the scheduling of tasks.<br />

Creating an Operator Using Management Studio<br />

To create an operator using Management Studio, you need to navigate to the <strong>SQL</strong> <strong>Server</strong> Agent node of<br />

the server for which you’re creating the operator. Expand the <strong>SQL</strong> <strong>Server</strong> Agent node, right-click the<br />

Operators member, and choose New Operator.<br />

Be aware that, depending on your particular installation, the <strong>SQL</strong> <strong>Server</strong> Agent Service may not start automatically<br />

by default. If you run into any issues or if you notice the <strong>SQL</strong> <strong>Server</strong> Agent icon in Management<br />

Studio has a little red square in it, the service is probably set to manual or even disabled; you will probably<br />

want to change the service to start automatically. Regardless, make sure that it is running for the<br />

examples, Try It Out, and Exercises found in this chapter. You can do this by right-clicking the Agent<br />

node and selecting Manage Service.<br />

You should be presented with the dialog box shown in Figure 19-1. (Mine is partially filled in.)<br />

Figure 19-1<br />

Chapter 19: Playing Administrator<br />

565

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!