Restoring the deleted record

Posted on 2007-07-20
Last Modified: 2010-03-19
We are using sql server 2005. One user has accidently deleted a record and wants to recover it. I am beginner sql user. How can restore this deleted data from the back up quicker. Please help
Question by:PAPA1964
    1 Comment
    LVL 75

    Accepted Solution

    Hello PAPA1964,
    You can do a Point in time recovery to recover the data you truncated. The POINT-IN-TIME recovery will work only if the database's Recovery model is set to "FULL".


    1. Perform a transaction log backup of the original database (If you have not performed one)
    2. RESTORE DATABASE TEST1 FROM full database backup file (Give the correct backup file / device name) WITH NORECOVERY
    3. Restore the subsequent transaction log files in order of backup WITH NORECOVERY option till the final transaction log file
    4. In the the final transaction log restore mention WITH RECOVERY and STOPAT='date and time' (time before the truncate)
    5. No from the new database copy the data to actual database and validate the date.

    Aneesh R

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
    Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now