I am not sure whether this is restore data scenario is possible.
Scenario:
I have a table with few 100 data inserts every day.I didn't realize that because of some reason(identified later as a bug in code),the data was getting deleted the same day whenever a new record which was not related that process comes into the table.So there is no specific time that this delete happens.
We identified this after a week(yesterday),and i added a delete trigger for that table and stores the data into another table.
The issue is how can i restore past week's deleted data.
I have transaction log backups which was taken every one hour.
Without knowing the specific time the data got deleted,how can i do point in time recovery.
Any restore strategy.?
Best Answer
It would be an arduous process, but you might be able to use
RESTORE WITH STANDBY
to a different instance. After each log is restored, you can read the data in the database. There is no guarantee the rows you are looking for haven't been added and deleted within the same transaction log backup.RESTORE Statements
On a side note (in reference to your statement about hourly transaction log backups), this situation is one of the reasons I like to Back Up Transaction Logs Every Minute. Yes, Really. for my critical databases.
Here is an example of using
WITH STANDBY
.