Solved

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

Posted on 2008-10-07
2
739 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SELECT query on two levels (detail and summary) 13 47
SQL Update trigger 5 16
SQL Server 2012 - Merge Replication Issue 1 19
Sql Query 6 50
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
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…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

805 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