1 / 14

SQL Server 2000 Backup & Recovery

SQL Server 2000 Backup & Recovery. Palak Patel. Backup Plan. Why backup? How Often will the backup occur? – How the system databases will be backed up? To what medium the backups will be made? Who will be responsible for the backups How will be the backup verified?

sabine
Download Presentation

SQL Server 2000 Backup & Recovery

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SQL Server 2000Backup & Recovery Palak Patel

  2. Backup Plan • Why backup? • How Often will the backup occur? – How the system databases will be backed up? • To what medium the backups will be made? • Who will be responsible for the backups • How will be the backup verified? • What will be the policy for backing up non-logged operations?

  3. Using Windows and Hardware to Protect SQL Server • Various Security measures in Windows • Windows Capabilities of RAID Configurations • RAID Hardware based configurations • Windows Clustering • Standby Servers • Log Shipping (Only with Enterprise Edition). Use Database maintenance Wizard to Set it up

  4. DBCC, Transaction & Copy Database Wizard • DBCC CHECKDB • DBCC CHECKALLOC • DBCC CHECKCATALOG Understand the Concept of a Database Transaction Copy Database Wizard to Copy the Database

  5. SQL Database Backup Modes • Full Recovery • Bulk-logged Recovery • Simple Recovery

  6. Backup Types • Complete Backup • Transaction Log Backup • Differential Database Backup • File group Backups

  7. Backup Characteristics • While database is being backup, you can do everything but • Creating / Rebuilding Indexes • Creating / Modifying tables • Creating / Modifying columns

  8. Backup Devices • Disk • Tape • Creating Backup Device • Using EM • sp_addumpdevice • Removing Backup Device • Using EM • Sp_dropdevice • Sp_helpdevice

  9. Backing up and Restoring Directly From Files e.g. • BACKUP DATABASE Pubs TO Disk = ‘c:\mssql7\data\pubs.bak’

  10. Backing Up Databases & Log • BACKUP DATABASE • BACKUP LOG (TRUNCATE_ONLY, NO_TRUNCATE, NO_LOG Switches) • Using EM • Performing Parallel Stripped Backups • Performing Differential Backups • Performing File Group Backups • Scheduling Backups

  11. Database Maintenance Plan Wizard • Demo

  12. Restoring the Database • RESTORE DATABASE • Options: RESTRICTED_USER, RECOVERY (Default), NO_RECOVERY, REPLACE, STANDBY, RESTART • Using EM • Restoring Full Databases • Restoring File Groups • Restoring Differential Backups • Restore the Log • Restoring to a Certain Time

  13. Restoring Databases - Steps • General Restore Steps • Attempt to Backup Transaction Log • Find and Fix cause of failure • Drop the Affected database • Restore the database • Recover the database • DEMO

  14. Restoring Master Database • If you have backup, • Start SQL Server Using SQLSERVR –m • Restore the master database • If you do not have backup • Use rebuildm.exe • Reattach all the user databases • Recreate setting for SQL Server • Recreate Logins and Users for each database • Recreate msdb, model and distribution databases

More Related