How to recover deleted rows from SQL server table?

若如初见. 提交于 2019-11-26 22:23:51

问题


I accidentaly ran a DELETE command against a table with a wrong WHERE clause.

I am using SQL Server 2005.

Is there a way that could help me recover the lost data?


回答1:


It is possible using Apex Recovery Tool,i have successfully recovered my table rows which i accidentally deleted

if you download the trial version it will recover only 10th row

check here http://www.apexsql.com/sql_tools_log.aspx




回答2:


You have Full data + Transaction log backups, right? You can restore to another Database from backups and then sync the deleted rows back. Lots of work though...

(Have you looked at Redgate's SQL Log Rescue? Update: it's SQL Server 2000 only)

There is Log Explorer




回答3:


I think thats impossible, sorry.

Thats why whenever running a delete or update you should always use BEGIN TRANSACTION, then COMMIT if successful or ROLLBACK if not.




回答4:


What is gone is gone. The only protection I know of is regular backup.



来源:https://stackoverflow.com/questions/3540729/how-to-recover-deleted-rows-from-sql-server-table

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!