The message is

The log scan number (1166:312:1) passed to log scan in database 'master' is not valid. This error may indicate data corruption or that the log file (.ldf) does not match the data file (.mdf). If this error occurred during replication, re-create the publication. Otherwise, restore from backup if the problem results in a failure during startup.

Can you help in resolving the issue.

  • 3
    Have you run DBCC CHECKDB on the master database? Dec 27, 2016 at 16:43

2 Answers 2


Restore your master database from a backup. This is a good guide:



First, run the DBCC CHECKDB command and find the exact reason behind this problem.Now restore from the updated backup. If you not have updated backup then try to fix the problem by using automatic repairing options of DBCC CHEKCDB:

  • Repair Rebuild
  • Repair allow data loss

Good Luck!

  • You need to stress the risks involved in the two DBCC CHECKDB options you suggest. Dec 28, 2016 at 9:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.