Author |
Topic |
vikky
Yak Posting Veteran
54 Posts |
Posted - 2011-11-09 : 07:00:58
|
HI,Is it possible to recovery data if i delete the record using delete statement. Delete statement is not in transactions.My database is in full recovery model. Please help me. |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-11-09 : 07:05:45
|
you can restore a recent backup if you've one as new db and then copy required data from there.------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
vikky
Yak Posting Veteran
54 Posts |
Posted - 2011-11-09 : 07:10:22
|
Hi experts,is there any possibility to record this delete statement in any log files.?Please clarify my doubt. |
 |
|
vikki.seth
Yak Posting Veteran
66 Posts |
Posted - 2011-11-09 : 08:05:10
|
every transaction is recorded in the log file, however they are not easy to decipher.Probably you'll need a delete trigger on the table. Any delete statement will cause the trigger to fire. You can log deleted information to a "log" table. |
 |
|
vikky
Yak Posting Veteran
54 Posts |
Posted - 2011-11-09 : 09:07:15
|
OK, Thanks to visakh16 and vikki.seth for ur replay.Just to know the possibility for Disaster Recovery.If table doesn't have any trigger and transactions how to get data back.How to learn Disaster Recovery.? |
 |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-11-09 : 09:10:55
|
quote: Originally posted by vikky OK, Thanks to visakh16 and vikki.seth for ur replay.Just to know the possibility for Disaster Recovery.If table doesn't have any trigger and transactions how to get data back.How to learn Disaster Recovery.?
provided you've a backup that covers the missing transactions also, you can restore it to get back transaction data.------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
GilaMonster
Master Smack Fu Yak Hacker
4507 Posts |
Posted - 2011-11-09 : 09:18:16
|
Restore a backup taken before the data was deleted as a new database, copy the data over. There are log reader tools, they're not cheap and they're not guaranteed to get the data back unless DB is in full recovery (as log records may have been overwritten)--Gail ShawSQL Server MVP |
 |
|
Kristen
Test
22859 Posts |
Posted - 2011-11-09 : 14:34:31
|
Just in case clarification is needed:"Restore a backup" means:Restore a FULL backup, and all subsequent LOG backups, if necessary use "STOP AFTER" to restore to an exact point-in-time (just before the DELETE).Do this to a new, temporary, database.Then copy the accidentally-deleted rows from the Temporary-Database to the Original-DatabaseThis is not entirely straightforward as users may have re-added some of the "missing" records, and in recreating them they may have added them "differently". All those things can be resolved in the "recovery" of those rows, but it takes some thought to work out what to do for-the-best in such scenarios. |
 |
|
markwillium
Starting Member
11 Posts |
Posted - 2011-11-10 : 03:51:07
|
quote: Originally posted by vikky OK, Thanks to visakh16 and vikki.seth for ur replay.Just to know the possibility for Disaster Recovery.If table doesn't have any trigger and transactions how to get data back.How to learn Disaster Recovery.?
Hello Vikky,You can learn several articles on SQL server disaster recovery from here:http://support.microsoft.com/kb/307775http://sql-server-recovery.blogspot.com/ |
 |
|
|