November 29, 2009 at 3:48 pm
Hi,
I have SQL Server 2005 and configured log shipping. I'm testing the failover and role switch scenarios. I looking the error log for the last restored log backup on secondary.
Is there any script to find the last restored log backup on secondary?
thanks
November 29, 2009 at 4:58 pm
select last_restored_file from msdb.dbo.log_shipping_monitor_secondary where secondary_database = 'yourdb'
---------------------------------------------------------------------
November 30, 2009 at 2:08 am
you can also verify using job history.
November 30, 2009 at 10:16 am
December 1, 2009 at 7:36 am
msdb.dbo.restorehistory table as well.
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
December 1, 2009 at 7:45 am
From the object explorer if you navigate to system tables in MSDB database you will find a table "dbo.log_shipping_secondary_databases". query against this table. It will give you the last restored file and last restoration time.
Hope this Helps 🙂
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply