Professional Microsoft SQL Server 2014 Administration
by Adam Jorgensen, Bradley Ball, Steven Wort, Ross LoForte, Brian Knight
Chapter 5Automating SQL Server
WHAT'S IN THIS CHAPTER?
- Automating common maintenance activities using Maintenance Tasks
- Scheduling jobs to perform maintenance activities using SQL Server Agent
- Securing the jobs you create using SQL Server Agent security
- Configuring SQL Server Agent to meet your needs
- Scheduling jobs across multiple servers using the multiserver admin capabilities
Much of the work that a database administrator (DBA) does is repetitive: backing up databases, rebuilding indexes, and checking for file sizes and disk-space availability. Responding to events such as a full transaction log being out of disk space may also be part of a DBA's daily life. The problems grow rapidly with the number of servers you must administer. Automating this work is more than a convenience; it is a requirement for enterprise systems.
Two features in SQL Server 2014 come to the rescue of the DBA: Maintenance Plans and SQL Server Agent. Maintenance Plans enable you to automate the routine maintenance activities for a database. Backups, database integrity checks, and index maintenance tasks can be automated with Maintenance Plans. The Maintenance Plan Wizard makes it easy to create Maintenance Plans. SQL Server Agent enables you to manually create a schedule of jobs to be run on a SQL Server, further enhancing the ability of the DBA to automate routine activities.
MAINTENANCE PLANS
Maintenance Plans are a quick-and-easy way to automate routine maintenance tasks in SQL Server. They are ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access