Activant Solutions Inc. SQL 2005: Server Management SQL Server 2005 suite Course 3 of 4
This class is designed for Beginner/Intermediate SQL Server 2005 System Administrators
Objectives Create Maintenance Plans Perform Manual Database Backup Perform Manual Database Restore
This course will NOT cover SQL Server 2005 Installation SQL Server Data Storage Basic T-SQL Language for Query Building
Being a Proactive Administrator Fail to plan, plan to fail Things to think about How old are your backups? How often do you check? Do you need separate hard disks? Where do you store backups? Do you have replacement parts on hand? What can be AUTOMATED?
Maintenance Plans Core elements of a good plan Backup the database Backup the transaction log Maintain your indexes and statistics Check data consistency Strategy for restoration process
Creating Maintenance Plans Management Studio Maintenance Plan Design Surface Maintenance Plan Wizard Must be a member of sysadmin role to create Only displayed for Windows Authentication users
Maintenance Plan 2000 Server Maintenance Plans displayed under Legacy directory
Maintenance Plan Design Surface Allows you to create tasks for Maintenance Plan manually Flexibility
Maintenance Plan Surface Design Drag and drop task to the design surface
Maintenance Plan - Wizard Step-by-step for core Maintenance Plan tasks Creates scheduled job to run all tasks in sequence Completed Maintenance Plan viewed in Surface Design
Maintenance Plan
Maintenance Plan
Maintenance Plan Tasks will be performed in order be sure to move up or down for the proper execution
Maintenance Plan For each task you will need to select the database(s) from the dropdown
Maintenance Plan
Maintenance Plan
Maintenance Plan
Maintenance Plan
Maintenance Plan
Maintenance Plan
Types of Database Backups Full Database Backup All data files and part of the transaction log Differential Database Backup Backs up the changes since the last full backup Smaller and faster than full backup Useful for very large databases with minimal downtime Members of sysadmin, db_owner and db_backupoperator roles can perform backups
Backup Database - Manual
Backup Database - Manual
Restoring a Backup Full Database Restore Physical disk is damaged Entire database is damaged, corrupted or deleted To maintain an identical copy of the database Full Database with Transaction Logs Production DB failure Point In Time Recovery If you know the time of corruption
Restoring Recovery Mode Determines what state to return the database to after the database or transaction log restore is complete. Select proper state when restoring in Enterprise Manager Use RECOVERY or NORECOVERY option when running statement in Query Analyzer
Restoring a Transaction Log Backup Transaction Log backups are used after a full database backup restore Need to be run in order Can be used to recover to a specific time Recovery Options will be NORECOVERY until last log is restored
Restore - General
Restore - Options
Demonstration Using Enterprise Manager Backup Restore
Database Snapshots Read-only, consistent view of a database at a specified point in time Useful for testing or reporting Must exist on the same server as source database
SQL Server Profiler Filter useful data Duration over 10 seconds (10,000 milliseconds) Duration over 2 seconds (2,000 milliseconds) Reads over 10,000 Specific login Run until you have good representation of activity/data
Summary Maintenance plans are essential to good health of your SQL Server Maintenance plans can be created in 2 ways Surface Design and Wizard Manual backups and restores need to be accomplished from time to time be sure to know how to do these Profiler will help monitor your SQL Server
For More Information SQL Server Books Online Help Files Visit Activant on the web: http://distribution.activant.com/ View Educational Services course offerings Browse Documentation Search the Solutions database Submit a Support case E-mail Professional Services Sales pss@activant.com