Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

Restoring transaction logs from log shipping

$
0
0

Dear all, 

Currently, I am testing SQL log shipping features for DR purposes. Setting up the log transaction is simple. No problems encountered. However, when I tried to restore earlier transaction logs (not the latest one) it throws me an error message:

System.Data.SqlClient.SqlError: The log in this backup set terminates at LSN 21000000040000001, which is too early to apply to the database. A more recent log backup that includes LSN 21000000042400001 can be restored. (Microsoft.SqlServer.Smo)

When I tried to restore the latest transaction log it goes through.

Setup:

- 2 x SQL server. 1 Primary 1 Secondary.
- Setup logshipping on Primary server, DB is restored in secondary server as a Standby/read-only mode.
- .trn files are saved in secondary server.
- Shuts down primary server (To simulate a DR situation. Ie: No access to primary server at all)

Question:

In a DR, If I have a scenario that warrants me to restore to the earlier transaction logs (other than the latest logs), how do I do so? Please keep in mind that in a DR situation, I do not have any access to my primary server.

Thank you in advance.


Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>