Restore of transaction logs

  • I backup my transaction logs to a different server. I back up my logs every 30 min so I have a large number of them through out a 24 hour period.

    I can restore the logs one at a time through enterprise manager but I want to speed up the process.

    I have tried this from books online but it does not work.

    RESTORE LOG MyDatabase

       FROM Mytranslog.trn

       WITH NORECOVERY

    I keep getting an error Line 2: "Incorrect syntax near '.'

    would someone be so kind as to show me a way to restore more than 1 transaction log at a time?

    I realize the above code would be repeated for each transaction log I want to restore.

     

    thanks

    Gary

  • RESTORE LOG MyDatabase FROM DISK = 'Mytranslog.trn' WITH NORECOVERY

    SQL BAK Explorer - read SQL Server backup file details without SQL Server.
    Supports backup files created with SQL Server 2005 up to SQL Server 2017.

  • If you append to your transaction log backup file you will also need to use the FILE= argument.

    I have done this and programatically incremented the file number to restore multiple log backups.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply