Hi @OHPRS Admin ,
Thank you for reaching out and welcome to Microsoft Q&A.
For you error message:
Restore failed for Server ... Additional Information: System.Data.SqlClient.SqlError: The log in this backup set begins at LSN 47154000037511200001, which is too recent to apply to the database. An earlier log backup that includes LSN 47154000027507600001 can be restored.
It seems that you are not restoring the necessary log backups as they were created. You need to restore each after your full/diff in the correct order they were created. You are trying to apply a Log file that finish with LSN 4715400003751120000 into a DB restored with LSN 47154000027507600001, possible that you are not restoring transaction log backups in order. The LSN of the Full Backup (restored) is older than the log file that is trying to apply. So, the log file would not be possible to apply, being a change in sequence.
From this blog, I get this method to resolve the issue:
Please use Restore Gene- to automate DB restores. You can even use it using PowerShell to fully automate restores.
In addition, you can use the script in this article to check all backups and find which one we have missed, then restore it. Also, you can use the script in this blog to determine for restoring the available backups in order.
Best regards,
Lucy Chen
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
https://docs.microsoft.com/en-us/answers/support/email-notifications