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.

Chapter 19: Playing Administrator<br />

570<br />

Okay, so there’s little chance that our RAISERROR statement is going to fail, so we’ll just take the default<br />

of Quit the job reporting failure on this one. (We’ll see other possibilities later in the chapter when we<br />

come to backups.)<br />

That moves us back to the main New Job dialog box, and we’re now ready to move on to the Schedules<br />

node, shown in Figure 19-7.<br />

Figure 19-7<br />

In this dialog box, we can manage one or more scheduled times for this job to run. To actually create a<br />

new scheduled time for the job to run, we need to click the New button. That brings up yet another dialog<br />

box, shown in Figure 19-8.<br />

I’ve largely filled this one out already (lest you get buried in a sea of screenshots), but it is from this dialog<br />

box that we create a new schedule for this job. Recurrence and frequency are set here.<br />

The frequency side of things can be a bit confusing because of the funny way that they’ve worded things.<br />

If you want something to run at multiple times every day, then you need to set the job to Occur Daily<br />

every 1 day. This seems like it would run only once a day, but then you also have the option of setting<br />

whether it runs once or at an interval. In our case, we want to set our job to run every 5 minutes.<br />

Now we’re ready to move on to the next node of our job properties: alerts, shown in Figure 19-9.

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

Saved successfully!

Ooh no, something went wrong!