We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Restoring the deleted record

Medium Priority
320 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
Comment
Watch Question

Database Consultant
CERTIFIED EXPERT
Top Expert 2009
Commented:
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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.