Briefly about the reasons - problems with the repository led to the loss of the database file. Everything.
Checked - mdf database file - no. Log ldf is, model - full. There is a full backup. Almost fresh, from 09.2016 but having a log from 10/14/2016, I would like a fresh one.
What I tried to do myself:
- Created a backup of the preserved log: Created a KA database on another server,
ALTER DATABASE [KA] SET OFFLINE. deleted files, uploaded your ka_log.ldfALTER DATABASE [KA] SET ONLINE, got yourUnable to open the physical filemdf, etc. madeBACKUP LOG [ka] TO DISK = N'D:\Tail.bak' WITH NO_TRUNCATE;
During the backup, it was clear that the log also got at the time of the host crash - there was a BACKUP WITH CONTINUE_AFTER_ERROR успешно сформировал резервную копию поврежденной базы данных. Дополнительные сведения об обнаруженных ошибках см. в журнале ошибок SQL Server. message that BACKUP WITH CONTINUE_AFTER_ERROR успешно сформировал резервную копию поврежденной базы данных. Дополнительные сведения об обнаруженных ошибках см. в журнале ошибок SQL Server. BACKUP WITH CONTINUE_AFTER_ERROR успешно сформировал резервную копию поврежденной базы данных. Дополнительные сведения об обнаруженных ошибках см. в журнале ошибок SQL Server. In the log - Backup detected log corruption in database ka. Context is Bad Middle Sector Backup detected log corruption in database ka. Context is Bad Middle Sector
- Restored database from existing bk -
RESTORE DATABASE [ka] FROM DISK = N'C:\2016.Bak' WITH NORECOVERY, REPLACE - Tried to return the log -
RESTORE LOG [ka] FROM DISK = N'D:\Tail.bak' WITH FILE = 1, NOUNLOAD, STATS = 1, NORECOVERY, CONTINUE_AFTER_ERROR
Result - An error occurred while processing the log for the database "ka". If possible, restore from backup. If the backup is not available, you may need to rebuild the log.
Everything. In this place I ended. I feel that there must be some way to get to the data, but I don’t understand how.
I can not rebuild the log - I'm sitting in the recovery state. I cannot get out of recovery - I have problems with the restored transaction log.