Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Backup and restore full and transaction log in nonrecovery mode failed due to LSN

$
0
0

In SQL 2012 SP1 enterprise, when taking a full backup and followed up a transaction log backup immediately, the transaction log backup starts with an earlier LSN than the ending LSN of the full backup. As a result, I cannot restore the transaction log backup after the full backup both as nonrecovery on another machine. I was trying to make the two machine in sync for mirroring purpose. An example is as follows.

full backup:       first 1121000022679500037, last 1121000022681200001

transaction log: first 1121000022679000001, last 1121000022682000001

--- SQL Scripts used  

BACKUP DATABASE xxx  TO DISK = xxx WITH FORMAT
go

backup log  xxx to disk = xxx

--- When restore, I tried the

restore log BarraOneArchive  from disk=xxx  WITH STOPATMARK  = 'lsn:1121000022682000001', NORECOVERY

Also tried StopBeforeMark, did not work either. Complained about the LSN too early to apply to the database


Viewing all articles
Browse latest Browse all 12963

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>