For some reason this one database we have found has two LDF files. The properties of the database shows those two separate LOG files. When i try to delete one (via SSMS) i receive the error: The file cannot be removed because it is not empty.
I'm not sure how to empty out that file.
if i try to delete the other LDF file, i receive this error: The primary data or log file cannot be removed from a database.
So it looks like the second file is the real transaction log.
Basically, i need to create an empty transaction log because when trying to make a backup i receive the error: BACKUP deleted corruption in the database log. Check the errorlog for more information.
The errorlog shows: Backup detected log corruption in database MAX0104. Context is Wrong StartLSN.BLK. LogFile: 2 'C:\datafiles\log.ldf' VLF SeqNo: x17f6 VLFBase: x1e00000 LogBlockOffset: x2026a00 SectorStatus: 0 LogBlock.StartLsn.SeqNo: x17f6 LogBlock.StartLsn.Blk: x11b5 Size: x600 PrevSize: x600
I believe if i can just get the LDF files to be removed and then attach the database so it re-creates a new LDF i will be fine.
The only backup we have is one that was made by stopping the SQL service and copying all DF files to another folder. No backup of the database has been made since January or February.
darin