SlideShare a Scribd company logo
Backup beyond just a strategy with SQL ServerVinod KumarTechnology EvangelistMicrosoft Corporationwww.ExtremeExperts.comhttp://blogs.sqlxml.org/vinodkumar
Session Objectives and TakeawaysSession ObjectivesKnow some of the basics of SQL ServerWhat makes an effective Strategy for backupBoth from Technology EnhancementsActual implementationsTakeawaysThese as much as they look theoretical, We will view some of the fundamentals during the demo to make you realize how important backups are !!!
Targeted RolesDatabase Administration Database Development Database Operations and Support Database Solutions Architect
File Creation/InitializationCreation of database filesFiles being restored are created and initialized.This step is NOT performed if file already exists.Do not drop database prior to restoring it.Time requirementSQL Server 2000Write throughput of data devices (disks, RAID controllers, etc.)Same time as CREATE DATABASE or ALTER DATABASE ADD FILESQL Server 2005+ – Zero-initialization SKIPPED
Data/Transaction Log CopyFile containing data or transaction log is copied from backup devices to destinationLength of this phase:Amount of data or log to be copiedSlowest component of the I/O system (disk device, backup device, controller, PCI bus, network)System tuned for maximum copy speed is limited by memory bus bandwidth—or before that, number of PCI buses or slots supported by systemCPU usage should be insignificant
RedoRedo (or roll-forward) occurs after the log has been restored.Reads the transaction log.Reapplies changes recorded in log to data pages so all pages are consistent with log.Length of this phase is determined by…Amount of log to redo (affected by type and frequency of backups), andSystem performance.Planning: How fast is redo relative to production workload?
UndoUndo is also called “roll-back” or “recovery.”Begins after redo reaches it target point, often the point of failure.Changes that were applied by active, uncommitted transactions at the target point are undone.Length of this phase:The amount of data modified by the active transactionsPlanning: Very hard – depends on how transactions have been written and/or if long running transactions exist…
Phases of RestoreFile Creation/Initialization  Same as CREATE DATABASEMinimized by Skipping zero-initializationData and/or Transaction Log Copy  Based on Media type and DB Size	Minimized by Optimizing HW Configuration and ThroughputRedo/Roll-forward Log Type/Frequency of BackupsMinimized by SQL Server Transaction Log InformationUndo Uncommitted Transactions  Impossible to predictDatabase Accessible upon REDO completion!
Instant File InitializationSkip data file zeroingCreate VLDB,Add or grow file,Initialize for restore,…in seconds!SecurityPrior disk contents not overwritten until usedExtra care if SQL Server shut down or DB detached Secure by defaultPermission grantable only by Windows administrator
Online RestoreSQL Server 2000One damaged page/device/file ENTIRE database marked suspect,		 taken “offline”Database is not available during restoreSQL Server 2005+ onwardsDatabase remains onlineOnly data being restored is unavailableFile/filegroup restore
Piecemeal ManagementFine Grained OperationsOperations affect the minimum amount of dataPagesFilegroupsPartitionsData not involved remainsAvailablePerformant
FilegroupsBasic unit of availabilityEarlier Versions of SQL ServerEntire databaseSQL Server 2005+Database can be online, yet not all filegroups are available
AvailablePrimaryFilegroupDatabaseFilegroup AFilegroup BExamplePiecemeal restore for disaster recoveryOnline restore of filegroups in priority orderBackupsPrimaryLogFilegroup AFilegroup B
Piecemeal Backup-RestorePartial database availability during restoreBased on file/filegroup backupWorks with all recovery modelsFull, Simple, Bulk-LoggedSupported only for databases with multiple filegroupsFilegroups must be recovered to consistent point
Short Restore SequenceFor Read-Only Data Log backups need not be restored when…File/filegroup is unchanged since backupFile has been rolled forward to where it is read-only Useful for read-only tables or partitionsSet filegroup read-onlyRecommended for FULL and BULK-LOGGED databasesPrevents inadvertent changePrevents changes by background tasksRequired for SIMPLE model databasesLog backup for roll forward not available
Primary FilegroupFilegroup ARESTORE  DATABASE D…  FILEGROUP=‘B’AvailableRestore Damaged FilegroupFull model databaseLog BackupsPrimary       BackupDatabaseFilegroup A       BackupFilegroup BBackupFilegroup BRead - OnlyFilegroup CBackupFilegroup CRead - Only
Recovery Models - GlanceFull No work lossSupports recovery to any point-in-timeSimpleSimplest backup/restore strategySimplifies log managementNo log backupsGreatest work loss possibleNo point-in-time recoveryNo access to tail Bulk_LoggedHigh performance bulk operationsMinimal log space for bulk operationsSome work loss exposureMany large data warehouses fit this model
Partial BackupsTwo new types of backupPartial DatabaseSimilar to a full database backup, but contains only the read-write filegroupsPartial DifferentialSimilar to a full database differential, but contains only the read-write filegroupsAdded to allow piecemeal restore of simple model databasesAlso work with full and bulk-logged models
Piecemeal Backup-RestoreSimple Model DatabasesRequired backupsPartial database backupFile or filegroup backups of read-only filegroupsMust be consistent with partialOptional backupsPartial differentialFile/filegroup differentialIf filegroup normally read-only was changed, then made read-only again
BACKUP  DATABASE D…  WITH PARTIALPrimary FilegroupFilegroup ABACKUP  DATABASE D…  FILEGROUP=‘B’BACKUP  DATABASE D…  FILEGROUP=‘C’Piecemeal BackupSimple model databaseDatabasePartial       BackupFilegroup BBackupFilegroup BRead - OnlyFilegroup CBackupFilegroup CRead - Only
RESTORE  DATABASE D…  WITH PARTIALPrimary FilegroupFilegroup ARESTORE  DATABASE D…  FILEGROUP=‘B’Filegroup BRead - OnlyRESTORE  DATABASE D…  FILEGROUP=‘C’Filegroup CAvailableRead - OnlyPiecemeal RestoreSimple model databaseDatabasePartial       BackupFilegroup BBackupFilegroup CBackup
Primary FilegroupFilegroup ARESTORE  DATABASE D…  FILEGROUP=‘B’AvailableRestore Damaged FilegroupSimple model databaseDatabasePartial       BackupFilegroup BBackupFilegroup BRead - OnlyFilegroup CBackupFilegroup CRead - Only
UnavailableRESTORE  DATABASE D…  WITH PARTIALAvailableRestore Damaged PrimarySimple model databaseDatabasePartial       BackupPrimary FilegroupFilegroup AFilegroup BBackupFilegroup BDatabase Primary and A may be taken back in time without restoring filegroups B and C if B and C are consistentRead - OnlyFilegroup CBackupFilegroup CRead - Only
Damaged Page Tracking And RestoreDamaged pages encountered on read Torn page or checksum errorBad Page IDShort readDatabase remains availableTransaction rolls backBUT error during rollback forces database restartDamaged pages Automatically tracked in a tableMay be restored and recovered onlineWorks for databases with a single filegroup
Page Restore Versus File RestoreConsider page restore when…You have a limited number of damaged pagesYou must maintain maximum availabilityConsider file restore when…A device is failingYou have large numbers of damaged pagesYou need to relocate data to another deviceYou can tolerate the affected filegroupbeing unavailable
Data Page VerificationTypesTorn page detection – 7.0 and 2000Page checksum – NEW!Page checksumDetect disk I/O errors not reported by the hardware or operating systemWhen the checksum is verifiedRetries eliminate transients If verification fails,A unique error is raised Connection is terminatedPage is tracked
Backup VerificationDetect errors unreported by the backup devices or operating systemBackup checksums are optionally generatedVerified byRESTORERESTORE VERIFYONLYBackup optionally validates page checksums if these are presentOptionally continue past page checksum errors to complete the backup
Continue Past Restore ErrorsWhy?A damaged backup may be the only one availableContinue past errors encountered byRESTORERESTORE VERIFYONLYAllows the restore sequence to continue as far as possible…Affected file groups are left in suspect state
Backup/RestoreMirrored Media SetsRedundant backup media helps guarantee successful restoreExtra copies forArchivalDisaster recovery
Demo
31SummaryBackups are the most important step in restoring your DB in event of failureMaybe your first and last resortMust understand the effects of using themKnow ALL the options in handling disasterAll the Best !!!
Questionswww. ExtremeExperts.comhttp://blogs.sqlxml.org/vinodkumarT: @vinodk_sql
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation.  Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.  MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

More Related Content

PPTX
Tech Ed Africa Demystifying Backup Restore In Share Point 2007
DOC
Oracle OCP Backup Exam
DOC
Oracle ocp backup exam
PPTX
Backup & recovery with rman
PPTX
Sharepoint 2007 backup & restore
PPT
SharePoint Backup And Disaster Recovery with Joel Oleson
PPT
Les 09 diag
PPT
Xpp c user_rec
Tech Ed Africa Demystifying Backup Restore In Share Point 2007
Oracle OCP Backup Exam
Oracle ocp backup exam
Backup & recovery with rman
Sharepoint 2007 backup & restore
SharePoint Backup And Disaster Recovery with Joel Oleson
Les 09 diag
Xpp c user_rec

What's hot (20)

PPTX
Noel sps bay_backup_restore
PPTX
10 Problems with your RMAN backup script
PPT
Les 20 dup_db
PPT
Les 13 memory
PPT
Les 06 Perform Rec
PPT
Les 12 fl_db
PPT
Les 01 core
PPTX
Sps baltimore backupand_restore-dpm
PPT
Les 02 config
PPT
Less02 Installation
PPTX
Managing Hyper-V on a Compellent SAN
PPT
Les 02 Config Rec
PPT
Les 04 config_bu
PPT
Les 07 Rman Rec
PPT
Les 07 rman_rec
PPT
Les 03 catalog
PPT
Les 19 space_db
PPT
Les 08 tune_rman
PPT
Les 11 fl2
Noel sps bay_backup_restore
10 Problems with your RMAN backup script
Les 20 dup_db
Les 13 memory
Les 06 Perform Rec
Les 12 fl_db
Les 01 core
Sps baltimore backupand_restore-dpm
Les 02 config
Less02 Installation
Managing Hyper-V on a Compellent SAN
Les 02 Config Rec
Les 04 config_bu
Les 07 Rman Rec
Les 07 rman_rec
Les 03 catalog
Les 19 space_db
Les 08 tune_rman
Les 11 fl2
Ad

Viewers also liked (19)

PPTX
Preventores sociales comunitarios
PDF
Membangun relasi
PPTX
Agile Development 2012 sharing and Kanban Introduction
PPTX
Dynamics AX - Point of Service Not Point of Sale
PDF
xRM Twilight Presentation
PPTX
Tema wanita berharga bagi tuhan
PPTX
Tr garland business networking expert - entrepreneur magazine - part 1
PDF
Improve your company's performance with IMAFS
DOC
Liburan murah ke bali, harga rp 250 rb 2hr 1 mlm. hub 08563776704 (im3), inf...
PDF
Meroni comunicare - Brochure istituzionale 2011
PPTX
Ayat Hafalan Minggu ini
PPT
Diseño y construccion de medios alternativos de comunicación para
PDF
MB6-890 Score Report
DOCX
Senam kegel pria untuk bercinta hingga 8 kali
PDF
Common scrum issues
PPTX
2. sistemas de numeracion
PPTX
15. c combin ovejas
PDF
Nano Server (ATD 11)
Preventores sociales comunitarios
Membangun relasi
Agile Development 2012 sharing and Kanban Introduction
Dynamics AX - Point of Service Not Point of Sale
xRM Twilight Presentation
Tema wanita berharga bagi tuhan
Tr garland business networking expert - entrepreneur magazine - part 1
Improve your company's performance with IMAFS
Liburan murah ke bali, harga rp 250 rb 2hr 1 mlm. hub 08563776704 (im3), inf...
Meroni comunicare - Brochure istituzionale 2011
Ayat Hafalan Minggu ini
Diseño y construccion de medios alternativos de comunicación para
MB6-890 Score Report
Senam kegel pria untuk bercinta hingga 8 kali
Common scrum issues
2. sistemas de numeracion
15. c combin ovejas
Nano Server (ATD 11)
Ad

Similar to Backup beyond just a strategy with SQL Server (20)

PPTX
Unit Three: Database Recovery Points & Procedures
PPTX
Sql server lesson10
PPTX
SQLBits 2008 - SQL Server High Availability and Disaster Recovery Overview - ...
PPTX
Prevent Recovery Amnesia - Forget The Backups
PDF
SQL server Backup Restore Revealed
PDF
Real liferecoverypresentation
PPT
Backup and Recovery Implementation
PDF
Real liferecoverypaper
PDF
DB2 LUW - Backup and Recovery
PDF
PPTX
Backup And Recovery Planning
PPTX
Databaseadmonfundamentalitprosdcchapter6
PDF
ch-5 advanced db.pdf
PPTX
Db As Behaving Badly... Worst Practices For Database Administrators Rod Colledge
PPTX
Chapter 3 - Recogfytru6y5tfvery Techniques.pptx
PPTX
fffffffChapter 1- Recovery Techniques.pptx
PPTX
gyuftfChapter 1- Recovery Techniques.pptx
PPTX
Backup and restore
PDF
SQL Server Backup and Restore
PPTX
24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes
Unit Three: Database Recovery Points & Procedures
Sql server lesson10
SQLBits 2008 - SQL Server High Availability and Disaster Recovery Overview - ...
Prevent Recovery Amnesia - Forget The Backups
SQL server Backup Restore Revealed
Real liferecoverypresentation
Backup and Recovery Implementation
Real liferecoverypaper
DB2 LUW - Backup and Recovery
Backup And Recovery Planning
Databaseadmonfundamentalitprosdcchapter6
ch-5 advanced db.pdf
Db As Behaving Badly... Worst Practices For Database Administrators Rod Colledge
Chapter 3 - Recogfytru6y5tfvery Techniques.pptx
fffffffChapter 1- Recovery Techniques.pptx
gyuftfChapter 1- Recovery Techniques.pptx
Backup and restore
SQL Server Backup and Restore
24 HOP edición Español - Sql server 2014 backup encryption - Percy Reyes

More from Vinod Kumar (7)

PPTX
SQL Server Query Optimization, Execution and Debugging Query Performance
PPT
Advanced t sql - querying and programming inside sql server
PPT
Choosing a concurrency model, optimistic or pessimistic
PPTX
Choosing A Concurrency Model, Optimistic Or Pessimistic
PPT
Sql Server Security
PPT
Windows Mobile 5.0 Data Access And Storage Webcast
PPT
Protecting Your Key Asset – Data Protection Best Practices V2.0 Final
SQL Server Query Optimization, Execution and Debugging Query Performance
Advanced t sql - querying and programming inside sql server
Choosing a concurrency model, optimistic or pessimistic
Choosing A Concurrency Model, Optimistic Or Pessimistic
Sql Server Security
Windows Mobile 5.0 Data Access And Storage Webcast
Protecting Your Key Asset – Data Protection Best Practices V2.0 Final

Recently uploaded (20)

PPTX
Spectroscopy.pptx food analysis technology
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Electronic commerce courselecture one. Pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
cuic standard and advanced reporting.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Tartificialntelligence_presentation.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPT
Teaching material agriculture food technology
PDF
Encapsulation theory and applications.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Spectroscopy.pptx food analysis technology
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Electronic commerce courselecture one. Pdf
Assigned Numbers - 2025 - Bluetooth® Document
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
SOPHOS-XG Firewall Administrator PPT.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
MIND Revenue Release Quarter 2 2025 Press Release
cuic standard and advanced reporting.pdf
Machine learning based COVID-19 study performance prediction
The Rise and Fall of 3GPP – Time for a Sabbatical?
Tartificialntelligence_presentation.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Teaching material agriculture food technology
Encapsulation theory and applications.pdf
Encapsulation_ Review paper, used for researhc scholars
Programs and apps: productivity, graphics, security and other tools
Agricultural_Statistics_at_a_Glance_2022_0.pdf

Backup beyond just a strategy with SQL Server

  • 1. Backup beyond just a strategy with SQL ServerVinod KumarTechnology EvangelistMicrosoft Corporationwww.ExtremeExperts.comhttp://blogs.sqlxml.org/vinodkumar
  • 2. Session Objectives and TakeawaysSession ObjectivesKnow some of the basics of SQL ServerWhat makes an effective Strategy for backupBoth from Technology EnhancementsActual implementationsTakeawaysThese as much as they look theoretical, We will view some of the fundamentals during the demo to make you realize how important backups are !!!
  • 3. Targeted RolesDatabase Administration Database Development Database Operations and Support Database Solutions Architect
  • 4. File Creation/InitializationCreation of database filesFiles being restored are created and initialized.This step is NOT performed if file already exists.Do not drop database prior to restoring it.Time requirementSQL Server 2000Write throughput of data devices (disks, RAID controllers, etc.)Same time as CREATE DATABASE or ALTER DATABASE ADD FILESQL Server 2005+ – Zero-initialization SKIPPED
  • 5. Data/Transaction Log CopyFile containing data or transaction log is copied from backup devices to destinationLength of this phase:Amount of data or log to be copiedSlowest component of the I/O system (disk device, backup device, controller, PCI bus, network)System tuned for maximum copy speed is limited by memory bus bandwidth—or before that, number of PCI buses or slots supported by systemCPU usage should be insignificant
  • 6. RedoRedo (or roll-forward) occurs after the log has been restored.Reads the transaction log.Reapplies changes recorded in log to data pages so all pages are consistent with log.Length of this phase is determined by…Amount of log to redo (affected by type and frequency of backups), andSystem performance.Planning: How fast is redo relative to production workload?
  • 7. UndoUndo is also called “roll-back” or “recovery.”Begins after redo reaches it target point, often the point of failure.Changes that were applied by active, uncommitted transactions at the target point are undone.Length of this phase:The amount of data modified by the active transactionsPlanning: Very hard – depends on how transactions have been written and/or if long running transactions exist…
  • 8. Phases of RestoreFile Creation/Initialization  Same as CREATE DATABASEMinimized by Skipping zero-initializationData and/or Transaction Log Copy  Based on Media type and DB Size Minimized by Optimizing HW Configuration and ThroughputRedo/Roll-forward Log Type/Frequency of BackupsMinimized by SQL Server Transaction Log InformationUndo Uncommitted Transactions  Impossible to predictDatabase Accessible upon REDO completion!
  • 9. Instant File InitializationSkip data file zeroingCreate VLDB,Add or grow file,Initialize for restore,…in seconds!SecurityPrior disk contents not overwritten until usedExtra care if SQL Server shut down or DB detached Secure by defaultPermission grantable only by Windows administrator
  • 10. Online RestoreSQL Server 2000One damaged page/device/file ENTIRE database marked suspect, taken “offline”Database is not available during restoreSQL Server 2005+ onwardsDatabase remains onlineOnly data being restored is unavailableFile/filegroup restore
  • 11. Piecemeal ManagementFine Grained OperationsOperations affect the minimum amount of dataPagesFilegroupsPartitionsData not involved remainsAvailablePerformant
  • 12. FilegroupsBasic unit of availabilityEarlier Versions of SQL ServerEntire databaseSQL Server 2005+Database can be online, yet not all filegroups are available
  • 13. AvailablePrimaryFilegroupDatabaseFilegroup AFilegroup BExamplePiecemeal restore for disaster recoveryOnline restore of filegroups in priority orderBackupsPrimaryLogFilegroup AFilegroup B
  • 14. Piecemeal Backup-RestorePartial database availability during restoreBased on file/filegroup backupWorks with all recovery modelsFull, Simple, Bulk-LoggedSupported only for databases with multiple filegroupsFilegroups must be recovered to consistent point
  • 15. Short Restore SequenceFor Read-Only Data Log backups need not be restored when…File/filegroup is unchanged since backupFile has been rolled forward to where it is read-only Useful for read-only tables or partitionsSet filegroup read-onlyRecommended for FULL and BULK-LOGGED databasesPrevents inadvertent changePrevents changes by background tasksRequired for SIMPLE model databasesLog backup for roll forward not available
  • 16. Primary FilegroupFilegroup ARESTORE DATABASE D… FILEGROUP=‘B’AvailableRestore Damaged FilegroupFull model databaseLog BackupsPrimary BackupDatabaseFilegroup A BackupFilegroup BBackupFilegroup BRead - OnlyFilegroup CBackupFilegroup CRead - Only
  • 17. Recovery Models - GlanceFull No work lossSupports recovery to any point-in-timeSimpleSimplest backup/restore strategySimplifies log managementNo log backupsGreatest work loss possibleNo point-in-time recoveryNo access to tail Bulk_LoggedHigh performance bulk operationsMinimal log space for bulk operationsSome work loss exposureMany large data warehouses fit this model
  • 18. Partial BackupsTwo new types of backupPartial DatabaseSimilar to a full database backup, but contains only the read-write filegroupsPartial DifferentialSimilar to a full database differential, but contains only the read-write filegroupsAdded to allow piecemeal restore of simple model databasesAlso work with full and bulk-logged models
  • 19. Piecemeal Backup-RestoreSimple Model DatabasesRequired backupsPartial database backupFile or filegroup backups of read-only filegroupsMust be consistent with partialOptional backupsPartial differentialFile/filegroup differentialIf filegroup normally read-only was changed, then made read-only again
  • 20. BACKUP DATABASE D… WITH PARTIALPrimary FilegroupFilegroup ABACKUP DATABASE D… FILEGROUP=‘B’BACKUP DATABASE D… FILEGROUP=‘C’Piecemeal BackupSimple model databaseDatabasePartial BackupFilegroup BBackupFilegroup BRead - OnlyFilegroup CBackupFilegroup CRead - Only
  • 21. RESTORE DATABASE D… WITH PARTIALPrimary FilegroupFilegroup ARESTORE DATABASE D… FILEGROUP=‘B’Filegroup BRead - OnlyRESTORE DATABASE D… FILEGROUP=‘C’Filegroup CAvailableRead - OnlyPiecemeal RestoreSimple model databaseDatabasePartial BackupFilegroup BBackupFilegroup CBackup
  • 22. Primary FilegroupFilegroup ARESTORE DATABASE D… FILEGROUP=‘B’AvailableRestore Damaged FilegroupSimple model databaseDatabasePartial BackupFilegroup BBackupFilegroup BRead - OnlyFilegroup CBackupFilegroup CRead - Only
  • 23. UnavailableRESTORE DATABASE D… WITH PARTIALAvailableRestore Damaged PrimarySimple model databaseDatabasePartial BackupPrimary FilegroupFilegroup AFilegroup BBackupFilegroup BDatabase Primary and A may be taken back in time without restoring filegroups B and C if B and C are consistentRead - OnlyFilegroup CBackupFilegroup CRead - Only
  • 24. Damaged Page Tracking And RestoreDamaged pages encountered on read Torn page or checksum errorBad Page IDShort readDatabase remains availableTransaction rolls backBUT error during rollback forces database restartDamaged pages Automatically tracked in a tableMay be restored and recovered onlineWorks for databases with a single filegroup
  • 25. Page Restore Versus File RestoreConsider page restore when…You have a limited number of damaged pagesYou must maintain maximum availabilityConsider file restore when…A device is failingYou have large numbers of damaged pagesYou need to relocate data to another deviceYou can tolerate the affected filegroupbeing unavailable
  • 26. Data Page VerificationTypesTorn page detection – 7.0 and 2000Page checksum – NEW!Page checksumDetect disk I/O errors not reported by the hardware or operating systemWhen the checksum is verifiedRetries eliminate transients If verification fails,A unique error is raised Connection is terminatedPage is tracked
  • 27. Backup VerificationDetect errors unreported by the backup devices or operating systemBackup checksums are optionally generatedVerified byRESTORERESTORE VERIFYONLYBackup optionally validates page checksums if these are presentOptionally continue past page checksum errors to complete the backup
  • 28. Continue Past Restore ErrorsWhy?A damaged backup may be the only one availableContinue past errors encountered byRESTORERESTORE VERIFYONLYAllows the restore sequence to continue as far as possible…Affected file groups are left in suspect state
  • 29. Backup/RestoreMirrored Media SetsRedundant backup media helps guarantee successful restoreExtra copies forArchivalDisaster recovery
  • 30. Demo
  • 31. 31SummaryBackups are the most important step in restoring your DB in event of failureMaybe your first and last resortMust understand the effects of using themKnow ALL the options in handling disasterAll the Best !!!
  • 33. © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.