Understanding Logging & Recovery What Programmers Always Avoid Until it’s too Late! Kimberly L. Tripp Principal Mentor, Solid Quality Learning at www.SolidQualityLearning.comwww.SolidQualityLearning.com.

Slides:



Advertisements
Similar presentations
Optimizing Procedural Code Understanding Logging, Recovery, Locking and Performance Presentation Addition Understanding/Optimizing VLFs Kimberly L. Tripp.
Advertisements

Module 7 Restoring SQL Server 2008 R2 Databases. Module Overview Understanding the Restore Process Restoring Databases Working with Point-in-time Recovery.
FlareCo Ltd ALTER DATABASE AdventureWorks SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS Slide 1.
SQL Server Best Practices Keep Your Database In Top Performance Shape and Maintain Effective Backups September, 2007 Richard Kokoski.
©2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 5 Slide 1 IT390 Business Database Administration Unit 5 :
Searching TAL Online Developed by Northern Lights Internet Solutions Ltd. Advanced Searching.
Week 9 – Chapter 8 SQL 710 Methods to Backup Databases
Module 5 Understanding SQL Server 2008 R2 Recovery Models.
Database Configuration and Maintenance Database Configuration and Maintenance Exam / 30.
Presented by Joseph Galvan & Stacy Kemp BACKUPS.  Using database backups, a database administrator (DBA’s) can restore from the last backup or to a specific.
DBA 322 Optimizing Stored Procedure Performance Kimberly L. Tripp Solid Quality Learning – SolidQualityLearning.com
SQL SERVER DAYS 2011 Optimizing SQL Server Performance in a Virtual Environment Denny Cherry twitter.com/mrdenny.
TNT Microsoft Exchange Server 2003 Disaster Recovery Michael J. Murphy TechNet Presenter
1 Chapter Overview Understanding Backup Terms, Media, and Devices Backing Up Databases, Files, Filegroups, and Transaction Logs Restoring a User Database.
Chapter 2 Administrating DB Engine. Database Engine  The Database Engine is the core service for storing, processing, and securing data.  It provides.
Today’s Agenda Chapter 12 Admin Tasks Chapter 13 Automating Admin Tasks.
DBA Quick Start What do you do when you’ve fallen into a job as a DBA? Take a deep breath, Find out what you’ve got, And dive right in!
SQL Server 2008 Implementation and Maintenance Chapter 7: Performing Backups and Restores.
Chapter 10 : Designing a SQL Server 2005 Solution for High Availability MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
1 Chapter Overview Creating a User Database Setting Database Options Managing User Database Size Placing Database Files on Multiple Disks.
Monday, 13 October 2003 The Anatomy of a Data Modification Subset of: What everyone should know about Performance, Recovery & Logging Monday, 13 October.
Designing for Performance General Database Optimizations Presentation Highlight: The Anatomy of a Data Modification Wednesday, 12 November 2003 – 16:30-18:00.
Chapter 11: Designing a Data Recovery Solution for a Database MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design Study.
DAT335 SQL Server 2000 Tips and Tricks: DBAs and Developers Kimberly L. Tripp Solid Quality Learning – SolidQualityLearning.com
Databases Lesson 5.
Paul Filmalter PFE Microsoft DAT313 Agenda Setting the Scene What’s New In Database Mirroring in SQL Server 2008 Tips and Tricks Summary.
Chokchai Junchey Microsoft Product Specialist Certified Technical Training Center.
IT 456 Seminar 5 Dr Jeffrey A Robinson. Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and.
MS SQL by: Bryan Bankhead CIS 407. General Concepts  Backing up and Restoring databases and transaction logs is a way that SQL Server provides protection.
Pedro Azevedo Lopes Premier Field Engineer Microsoft Corporation.
DBA 328 Designing for Performance: Optimization with Indexes Kimberly L. Tripp Solid Quality Learning – SolidQualityLearning.com
1 Principles of Database Systems With Internet and Java Applications Today’s Topic Chapter 15: Reliability and Security in Database Servers Instructor’s.
1 Chapter Overview Understanding Data Restoration Issues Understanding the Types of Database Backups Understanding the Restoration Process.
Learningcomputer.com SQL Server 2008 – Backup and Restore Database.
IT System Administration Dr Jeffrey A Robinson.
Backup and Recovery - II - Checkpoint - Transaction log – active portion - Database Recovery.
Data Disaster Recovery Planning Greg Fibiger 1/7/2016.
Praveen Srivatsa Director| AstrhaSoft Consulting blogs.asthrasoft.com/praveens |
October 15-18, 2013 Charlotte, NC Accelerating Database Performance Using Compression Joseph D’Antoni, Solutions Architect Anexinet.
Digging Out From Corruption Eddie Wuerch, MCM - Principal, Database Performance - Salesforce Marketing Cloud Data protection and loss recovery with SQL.
Backing Up and Restoring Databases Advanced Database Dr. AlaaEddin Almabhouh.
Strategies for Working with Texas-sized Databases Robert L Davis Database Engineer
NIMAC for Accessible Media Producers: February 2013 NIMAC 2.0 for AMPs.
AGENDA 1.Importance of backups and backup strategy 2.Full DB backup and Restore 3.Filegroup Backup and restore 4.File Backup and Restore 5.Page restore.
DBA Quick Start What do you do when you’ve fallen into a job as a DBA? Take a deep breath, Find out what you’ve got, And dive right in!
Database Administration for the Non-DBA Denny Cherry twitter.com/mrdenny.
Thank You! Local PASS Community & Sponsors!. Restoring a SQL Server database from Azure Blob Storage (200-level) Randolph
Partial Database Availability
Securing SQL Server Processes with Certificates
SQL Backups for Beginners by Mark Gordon
Database Administration
SPR301 The Accidental DBA Survival Tips, Tricks, and Techniques
Curacao SQL Saturday June 11, 2016
A digital reference guide for database administrators
A digital reference guide for database administrators
Building Effective Backups
The Nitty-Gritty of Database Backups
Warner Chaves MCM / MVP / SQLTurbo.com / Pythian.com
Database Administration for the Non-DBA
SQL Backups for Beginners by Mark Gordon
In-Memory OLTP (IMOLTP) What Can It Do For Me?
Making PowerShell Useful
Back Up and Restore? Piece of Cake!
Backup and Restore your SQL Server Database
Peter Shore SQL Saturday Cleveland 2016
Warner Chaves MCM / MVP / SQLTurbo.com / Pythian.com
Warner Chaves MCM / MVP / SQLTurbo.com / Pythian.com
Backup & Recovery.
Presentation transcript:

Understanding Logging & Recovery What Programmers Always Avoid Until it’s too Late! Kimberly L. Tripp Principal Mentor, Solid Quality Learning at President, SYSolutions, Inc. at me: and

Speaker – Kimberly L. Tripp Independent Consultant/Trainer/Speaker/Writer President, SYSolutions, Inc. Principal Mentor, Solid Quality Learning * In-depth, high quality training around the world! SQL Server MVP ( Microsoft Regional Director ( Writer/Editor for TSQL Solutions/SQL Magazine and Coauthor for MSPress title: SQL Server 2000 High Availability Presenter/Technical Manager for SQL Server 2000 High Availability Overview DVD (MS Part# ) Very approachable. Please ask me questions!

Possible Combinations Full  BULK_LOGGED doesn’t break automated backup procedures or log shipping. However, a log backup immediately before (when changing to Bulk Logged) and a log backup immediately after (when changing back to full) are recommended. Transitions to/from SIMPLE are NEVER recommended as they break the continuity of the log chain. This eliminates your ability to go back to a prior full…meaning you’re only as good as your last full backup! n/a Backup Log just prior to change Simple n/a No Change Required, Transaction Log Backup Recommended BEFORE B ulk_Logged No Change Required, Transaction Log Backup Recommended AFTER n/a Full SimpleBulk_LoggedFull From  To  Full Database or Differential backup after change Backup Log just prior to change Full Database or Differential backup after change

Resources Check out for information about upcoming events, useful downloads and excellent scripts! There are quite a few resources and/or links to use. MSPress title: SQL Server 2000 High Availability Authors: Allan Hirt with Cathan Cook, Kimberly L. Tripp, Frank McBath ISBN: Check out the main page of for a sample chapter to download!

Resources See for additional sample codewww.SQLSkills.com Articles in SQL Server Magazine, Aug/Sept 2003: Recovering from Isolated Corruption The Best Place for Bulk_Logged, InstantDoc #39782 Articles in SQL Server Magazine, Sept 2002: Before Disaster Strikes, InstantDoc ID#25915 Log Backups Paused for Good Reason, InstantDoc #26032 Restoring After Isolated Disk Failure, InstantDoc #26067 Filegroup Usage for VLDBs, InstantDoc #26031 Articles in TSQLSolutions Journal, Oct 2001: TSQLTutor Quick Tip: Saving Production Data from Production dBAs, InstantDoc ID#22073

Resources See and for articles on Backup/Restorewww.sqlmag.comwww.tsqlsolutions.com From Books Online “Home Page” select White Papers to get to msdn For Tech Net articles use: efault.asp?frame=true See for all sorts of stuff! Support Resources listed: Webcasts: cst&FR=0&SD=MSDN&LN=EN- US&CT=SD&SE=NONA cst&FR=0&SD=MSDN&LN=EN- US&CT=SD&SE=NONA

BOL Favorites Make sure to get the latest version of the BOL. See Technical Resources, Product Documentation “Switching Recovery Models” “ALTER DATABASE” Functions: OBJECTPROPERTY, SERVERPROPERTY, DATABASEPROPERTYEX “Using Recovery Models” “Checkpoints and the Active Portion of the Log” “Virtual Log Files” “Shrinking the Transaction Log” “Optimizing Transaction Log Performance”