Solved

ROLLBACK A DATABASE SERVER IN 2008 SQL IN FULL RECOVERY MODEL

Posted on 2015-02-18
2
56 Views
Last Modified: 2015-02-26
If you have a db in full recovery model that needs point in time recovery but the transaction log has not yet been backed up.  Can you rollback a database without using backup files.

for instance
transaction logs backup up once a day at 1 am.    the next day someone makes a big mistake at 3 pm.  can I roll back the database to 2:55 pm without using backup files?  or do I have to wait until the transaction log backs up at midnight.
or do I have to manually backup the transaction log now. and recovery using the backups.

Whats the best way to rollback a database in this instance
thank you!
0
Comment
Question by:jamesmetcalf74
2 Comments
 
LVL 69

Accepted Solution

by:
ScottPletcher earned 250 total points
ID: 40617020
You have to manually back up the tran log, then recover the db.

If you are absolutely sure you want to recover that specific db, you can do a tail-log backup (that is, specify "WITH NORECOVERY", which will make the main db unusable until you recover it).
0
 
LVL 45

Assisted Solution

by:Vitor Montalvão
Vitor Montalvão earned 250 total points
ID: 40618515
You can't rollback committed transactions. The only way it's really the restore option and for that as ScottPletcher mentioned you need to perform a tail-log backup so the period that you want to recover will be in the backup plan.

Anyway you should review you backup plan. A single transaction log backup by day doesn't seems a good idea. You should perform transaction log backups more often and at least a daily differential backup.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SQL server 2008 SP4 29 34
Delete Trigger in SQL Server2008R2 5 13
Service Statictic 11 14
DATETIMEOFFSET feature 1 0
Audit has been really one of the more interesting, most useful, yet difficult to maintain topics in the history of SQL Server. In earlier versions of SQL people had very few options for auditing in SQL Server. It typically meant using SQL Trace …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
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…

747 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

12 Experts available now in Live!

Get 1:1 Help Now