recover the data from ldf

  • can you guide me how to recover the data

    The full back up was taken at 7:00 AM

    Users did the work till 4:30 PM

    Records were deleted at 4:45 PM

    I want to restore all the records deleted at 4:45 PM

  • How many log backups did you take after the full backup at 07.00, and when were they?

  • Beatrix Kiddo (6/16/2016)


    How many log backups did you take after the full backup at 07.00, and when were they?

    after reading the question subject. My assumption is he haven't taken any log backup but that is my assumption only. hope its not the case.

  • First, what is the recovery model of the database?

    What backups are you performing on it, and how often?

    Igor Micev,My blog: www.igormicev.com

  • Thanks for reply, recovery mode of thedatabase is full , we dont have any log backups after full back up was taken at 7:00 AM

  • It is possible to restore the deleted data if you follow the steps from this article https://www.mssqltips.com/sqlservertip/3160/recover-deleted-sql-server-data-and-tables-with-the-help-of-transaction-log-and-lsns/

    Igor Micev,My blog: www.igormicev.com

  • This was removed by the editor as SPAM

  • I notice this is an old thread, but in case anyone reading it is in a similar position, the steps are much simpler than those recommended above:

    (1) Take a transaction log backup of your database right now

    (2) Restore your database from the 7am backup on to a different server (or the same server with a different database name) with no recovery

    (3) Restore the log backup with recovery and stop at 4:44:59pm

    (4) Copy the required data from the restored database back to the original one. Be careful of foreign key constraints and so on

    (5) Schedule some transaction log backups on all your databases that aren't in Simple recovery mode. Your career will depend on not making a mistake like this again

    John

  • John Mitchell-245523 (9/13/2016)


    I notice this is an old thread, but in case anyone reading it is in a similar position, the steps are much simpler than those recommended above:

    (1) Take a transaction log backup of your database right now

    (2) Restore your database from the 7am backup on to a different server (or the same server with a different database name) with no recovery

    (3) Restore the log backup with recovery and stop at 4:44:59pm

    (4) Copy the required data from the restored database back to the original one. Be careful of foreign key constraints and so on

    (5) Schedule some transaction log backups on all your databases that aren't in Simple recovery mode. Your career will depend on not making a mistake like this again

    John

    Yes, very straightforward and same method I would do.

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply