Click here to Skip to main content
13,252,362 members (59,984 online)
Rate this:
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
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.
Rate this: bad
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)

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171114.1 | Last Updated 28 Apr 2013
Copyright © CodeProject, 1999-2017
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