deleted data without backups? How to recover... deleted data without backups? Vedran Kesegić
Gold sponsors
Platinum sponsor
About me M.Sc., FER, Zagreb, Croatia SQL Server Consultancy (performance) Microsoft Certified Master, MCT Author: XDetails (SQL Management Studio) Hobby: Photography vedran.kesegic@gmail.com
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
3 Methods: Good method Bad method Ugly method Not for faint-hearted!
A bit of theory... <60 sec
React FAST! Clone the files (Why FULL backup is NOT enough?) Relax 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!
Cloning the database (What is different from FULL backup?) DEMO Cloning the database (What is different from FULL backup?)
Recovery methods ALL METHODS REQUIRE CLONING FIRST !!! Process Kill (sqlservr.exe) Works if executed fast (before CHECKPOINT) NOT recommended (violent, too short time) Read „empty” part of transaction log Undocumented commands and trace flags Good, but not easy (will show in DEMO) 3rd party tools (ApexSQL log) Easy Costs money (well worth) ALL METHODS REQUIRE CLONING FIRST !!!
DEMO Extreme Recovery: Process Kill (Why it works? When it will not work?) DON’t DO IT!
DEMO Recovery by reading „empty” space of transaction log (reverse UPDATE and DELETE)
Recovery with 3rd party tool (ApexSQL Log) DEMO Recovery with 3rd party tool (ApexSQL Log)
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)
Summary CLONE files ASAP! Relax Use your favourite method!
Thank you! More info: blog.sqlxdetails.com Send questions about SQL Server: vedran.kesegic@gmail.com Thank you!
Please give feedback to us http://speakerscore.com/sqlsaturday419