Download presentation
Presentation is loading. Please wait.
Published byShon Booth Modified over 8 years ago
1
How to recover... deleted data without backups? Vedran Kesegić
2
Sponsors
3
About me M.Sc., FER, Zagreb, Croatia HRPro SQL Server Consultancy Microsoft Certified Master: SQL 2008 Author: XDetails (SQL Management Studio) Hobby: Photography vedran.kesegic@gmail.com
4
Tough situation? Data is deleted or updated by mistake DB is in SIMPLE recovery model There are no backups! It is impossible to recover!... almost
5
3 Methods: 1.Good method 2.Bad method 3.Ugly method Not for faint-hearted!
6
A bit of theory... <60 sec
7
React FAST! Clone the files (Why FULL backup is NOT enough?) Put db OFFLINE Copy files (both data and log) Put db ONLINE Relax you bought time to recover the data Needed by all 3 recovery methods!
8
Cloning the database (What is different from FULL backup?)
9
Recovery methods 1.Process Kill (sqlservr.exe) Works if executed fast (before CHECKPOINT) NOT recommended (violent, too short time) 2.Read „empty” part of transaction log Undocumented commands and trace flags Good, but not easy (will show in DEMO) 3.3rd party tools (ApexSQL log) Easy Costs money (well worth) ALL METHODS REQUIRE CLONING FIRST !!!
10
Extreme Recovery: Process Kill (Why it works? When it will not work?) DON’t DO IT!
11
Recovery by reading „empty” space of transaction log (reverse UPDATE and DELETE)
12
Recovery with 3rd party tool (ApexSQL Log)
13
Online options? Copy data and log files ONLINE? SAN snapshots VM snapshots (if running SQL in VM) VSS (Volume Shadow Service) Tools that use VSS (e.g. FreeFileSync)
14
Summary CLONE files ASAP! Relax Use your favourite method!
15
vedran.kesegic@gmail.com More info: blog.sqlxdetails.com Send questions about SQL Server: Thank you!
16
Please give feedback to us http://speakerscore.com/sqlsaturday376
17
Sponsors
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.