Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restore from transaction log 1

Status
Not open for further replies.

Azzuri

Programmer
Apr 16, 2002
18
CA
Hi,

A delete was just performed on one of our tables deleting all data for a specific day. Is there any way to restore the data from the transaction log. We are using SQL server 7 on WINNT server. Please let me know if you have any suggestions.

Thanks,
 
You cannot restore just part of the database. You must restore the whole thing.

-SQLBill
 
Sorry, does this mean I can still retrieve the data by restoring the database to how it was before the information was deleted or is it gone. If I can retrieve the data, how do I go about doing so.

Thanks for your help.
 
Do you have a full backup?

If so, first run RESTORE BACKUP command using the option WITH NORECOVERY.

Then run RESTORE LOG with the options WITH STOPAT and the date and time you want the log to restore to and don't forget to use WITH RECOVERY.

Refer to the Books OnLine, use the Index tab and enter RESTORE BACKUP, then check out RESTORE LOG.

-SQLBill
 
Thanks for the help SQLBill. I found what I needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top