[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Restoring the deleted record

Posted on 2007-07-20
1
Medium Priority
?
310 Views
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
0
Comment
Question by:PAPA1964
1 Comment
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 2000 total points
ID: 19531077
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".


Steps:

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
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I’ll look at how you can use a backup to start a secondary instance for MongoDB.
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

834 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