views:

43

answers:

3

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

I am using SQL Server 2005.

Is there a way, or any utility software that could help me recover the lost data?

A: 

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

spbfox
+2  A: 

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

Mitch Wheat
+1  A: 

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.

Ash Burlaczenko