views:

150

answers:

2

Hi Gurus,

How to recover a deleted row from SQL Server 2005 table ?

Thanks,
Ahmed.

+1  A: 

Rollback the transaction (if you started one).

Restore a backup (if you have one).

[edit] If you have transaction logs, you should be able to restore the backup of the database to the point roughly just before the row was deleted (assuming you know when that was).

Zarigani
Thanks Zarigani
Prog_Sud
A: 

Don't forget to set full recovery model for a database if you need the "restore to a point in time" option!

Jao