Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
I dropped wrong table and I really need to recover deleted data. I don’t have recent backup. Is there some script on some other way to bring table back. Found some scripts but I don’t want to experiment , I need solution that will work 100%
Posted 25-Apr-13 20:03pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

As good as i know, if you are using the SIMPLE recovery model, then there is no way to restore dropped table.
 
There is a third party tool by SYSTOOLS: SQL Server Database Recovery[^] and by Kernel Data Recovery: SQL recovery[^] which may help you. I'm never used it.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

First you need to stop your server and create a copy of both mdf and ldf files. If you had luck your data is still there and you can recover it with ApexSQL Recover[^] or some other tool made for data recovery .
 
Reason why this is possible is that drop table doesn’t delete data immediately but only reallocates this spaces and markes it as free so other tables can use it. Therefore you need to act fast before it’s overwritten (that’s why you need to create copies of MDF and LDF)
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 250
1 Jochen Arndt 155
2 PIEBALDconsult 150
3 DamithSL 125
4 Afzaal Ahmad Zeeshan 120
0 OriginalGriff 5,695
1 DamithSL 4,591
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,190


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 28 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100