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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 19: Playing Administrator<br />

574<br />

Finally, we can go back to the Notifications node of the main New Job dialog box, shown in Figure 19-13.<br />

Figure 19-13<br />

This window lets you bypass the older alerts model and define a response that is specific to this one job;<br />

we’ll just stick with what we already have for now, but you could define specific additional notifications<br />

in this dialog box.<br />

The last node in the list is the Targets node. This one generally falls in both the administrator and advanced<br />

realms, as it is based on the idea of one <strong>SQL</strong> <strong>Server</strong> scheduling jobs onto other <strong>SQL</strong> <strong>Server</strong>s. Be aware<br />

that it’s there for special needs, but we will otherwise save that topic for an advanced-level text.<br />

At this point, you are ready to say OK and exit the dialog box. You’ll need to wait a few minutes before<br />

the task will fire, but you should start to see log entries appear every five minutes in the Windows event<br />

log. You can look at this by navigating to Start ➪ Programs ➪ Administrative Tools ➪ Event Viewer.<br />

You’ll need to switch the view to use the Application log rather than the default System log.<br />

Don’t forget that, if you’re going to be running scheduled tasks like this one, you need to have the <strong>SQL</strong><br />

<strong>Server</strong> Agent running for them to be executed. You can check the status of the <strong>SQL</strong> <strong>Server</strong> Agent by<br />

running the <strong>SQL</strong> <strong>Server</strong> Configuration Manager and selecting the <strong>SQL</strong> <strong>Server</strong> Agent service, or by navigating<br />

to the <strong>SQL</strong> <strong>Server</strong> Agent node of the Object Explorer in Management Studio.<br />

Also, don’t forget to disable this job. (Right-click the job in Management Studio after you’ve seen that<br />

it’s working the way you expect. Otherwise, it will just continue to sit there and create entries in your<br />

Application log; eventually, the Application log will fill up and you can have problems with your system!)

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

Saved successfully!

Ooh no, something went wrong!