I've got this error in SQL Error Log
Backup detected log corruption in database MyDatabase.
Context is FirstSector.
LogFile: 2 'H:\MSSQL\Log\MyDatabase.ldf'
VLF SeqNo: x381
VLFBase: x100000
LogBlockOffset: x99ce00
SectorStatus: 2
LogBlock.StartLsn.
SeqNo: x63278c
LogBlock.StartLsn.Blk: xa650
Size: x2
PrevSize: x0
This command:
USE [MyDatabase]
GO
DBCC CHECKDB WITH NO_INFOMSGS, EXTENDED_LOGICAL_CHECKS, DATA_PURITY -- , ALL_ERRORMSGS
shows no error Does CHECKDB not perform any checks on Log file? Is there some other way to check the Log files?
I found the first occurrence in the SQL Error Logs. This was the last successful backup of that database:
Date 20/09/2016 21:01:00
Log SQL Server (Current - 30/08/2016 08:09:00)
Source Backup
Message
Log was backed up. Database: MyDatabase,
creation date(time): 2013/04/04(17:18:53),
first LSN: 897:17466:1,
last LSN: 897:17593:1,
number of dump devices: 1,
device information: (FILE=1, TYPE=DISK,
MEDIANAME='MyDatabase_Dump20160920':
{'F:\MSSQL\BACKUP\MyDatabase_20160920_210100_Trans.BAK'}).
This is an informational message only. No user action is required.
and then on the next hour a Log backup on another database works fine, but that database gives this error:
Date 20/09/2016 22:03:39
Log SQL Server (Current - 30/08/2016 08:09:00)
Source spid54
Message
Backup detected log corruption in database MyDatabase.
Context is FirstSector.
LogFile: 2 'H:\MSSQL\Log\MyDatabase.ldf'
VLF SeqNo: x381
VLFBase: x100000
LogBlockOffset: x99ce00
SectorStatus: 2
LogBlock.StartLsn.SeqNo: x63278c
LogBlock.StartLsn.Blk: xa650
Size: x2
PrevSize: x0
I presume I can throw away the log, in some way, and just carry on (as the MDF file does not appear to be damaged). I'm not sure ho to do that though ...