Solved

ROLLBACK A DATABASE SERVER IN 2008 SQL IN FULL RECOVERY MODEL

Posted on 2015-02-18
2
57 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 46

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Syntax using Declare 4 38
DATETIMEOFFSET feature 1 33
Need help debbuging stored procedure 21 34
T SQL Update Table from another table 5 46
Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

867 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