Restore History?

  • OK, I'm writing a procedure that looks in the some system tables and creates restore statements from the last backup. Long story short, I don't really have a way to verify that the restore was successful. Does SQL Server keep a history of restores as opposed to backups?

    Any help would be great, even if there is another way to programatically verify the restore happeded without using system tables (if one even exists for restores)

    Thanks!

  • Adam

    You could create a job that writes a row to a table and runs whenever the text "Database backed up: Database MyDB" appears in the error log.

    John

  • MSDB..restorehistory is a system table that records the History of restores.


    Glenn Henson

  • Thanks, why I did not find that on my own is beyond me, right in front of my face. Anyway, thanks a bunch for the help! that's exactly what I need

  • Here's a handy link no DBA should be without:

    http://www.microsoft.com/sql/prodinfo/previousversions/systables.mspx

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."

Viewing 5 posts - 1 through 4 (of 4 total)

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