Solved

Failed DB Recovery - 'The tail of the log....'

Posted on 2008-10-07
2
741 Views
Last Modified: 2012-05-05
I'm testing database restores and every time I attempt to restore a full database backup I receive the following messge:

System.Data.SqlClient.SqlError: The tail of the log for the database "DataMartAZ" has not been backed up. Use BACKUP LOG WITH NORECOVERY to backup the log if it contains work you do not want to lose. Use the WITH REPLACE or WITH STOPAT clause of the RESTORE statement to just overwrite the contents of the log. (Microsoft.SqlServer.Smo)

What causes this?  The Full Backup operation performs fine with no errors, but on restore I get this.  Any advice is appreciated.
0
Comment
Question by:jobprojn
2 Comments
 
LVL 15

Accepted Solution

by:
jorge_toriz earned 250 total points
ID: 22664049
BACKUP your database, then, BACKUP your log

RESTORE your database (with "WITH NORECOVERY" option) and then RESTORE your log
0
 

Author Comment

by:jobprojn
ID: 22664063
Thanks.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

791 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