Click here to Skip to main content
15,890,947 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

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.
 
Share this answer
 
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)
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900