Home Forums SQL Server 2005 Backups Initialize Secondary Database Tab Log Shipping RE: Initialize Secondary Database Tab Log Shipping

  • skyw (12/4/2008)


    Exactly.

    Can you please tell me the queries that I should use to verify that the Transaction Log of the recent changes has been applied to the Secondary Server.

    check the history of the lsrestore job or check the SQL errorlog to see last tranlog applied

    That is to bring the Secondary Database online assuming the Backup Folder on the Primary Server is still available, and we have access to the .trn files.

    when all logs avaialble to you have been restored, run this command to bring database online

    restore database dbname with recovery

    Only do this if you are failing over though, once database bought online you cannot restore any more transaction log backups.

    you may also need to synch your users at this point if they are orphaned (see sp_change_users_login)

    Thanks.

    ---------------------------------------------------------------------