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

Recent transactions missing from current transaction log backup

$
0
0

Hello all,

I've got a strange situation that I've had a hard time getting to the bottom of. The issue is that I have a web app that writes to a SQL 2008 (R1) database. If I query the database directly then all of the recent writes show up fine. However if I restore the database to a different server (starting with last full backup + last differential + any transaction log backups that have happened since then), I seem to be missing the most recent data written to the database.

The database is in full recovery mode and the transaction log backups are done hourly via a scheduled maintenance plan. During the restore I get no errors, and the restore indicates that it has restored log backup files up to well after the missing transactions have occurred.

Things I have done to troubleshoot include issuing a checkpoint manually before the log backup occurs. No change in behavior. I also queried the production database for the missing records using query hints like READCOMMITTED to make sure that they have actually been committed and it looks like they have.
The missing records will eventually show up in the restored database but when is a variable. Looks like they always do when the next differential is run.

The database is a small one, so it wouldn't surprise me if the whole thing was in memory. Still it seems like the committed transactions should go to the log when the transaction log backup is run...maybe I've been betrayed by the maintenance plan wizard?

All thoughts on this situation are welcome. Thanks in advance for reading!


Viewing all articles
Browse latest Browse all 15264

Trending Articles



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