Database snapshot history

  • Is there any historical system tables or catalog views to find out if the database was reverted back from the snapshot?

  • Does anyone know about it? I am still not able to figure it out. Any help is appreciated.

  • Can't believe this, no one answered as yet.

  • Did you see an entry in [msdb].[dbo].[restorehistory]?

  • Yes, did not find an entry for Snapshot restore.

  • Here are the scripts to create scenario

    --Create Snapshot

    CREATE DATABASE AdventureWorksSnap08052010 ON

    ( NAME = AdventureWorks_Data, FILENAME =

    'E:\MSSQL\Data\AdventureWorksSnap08052010.ss' )

    AS SNAPSHOT OF AdventureWorks;

    GO

    select * from HumanResources.Employee

    select * from AdventureWorksSnap08052010.HumanResources.Employee

    Update HumanResources.Employee Set HireDate='1996-07-30' where

    EmployeeID=1

    --Revert

    USE master;

    RESTORE DATABASE AdventureWorks from

    DATABASE_SNAPSHOT = 'AdventureWorksSnap08052010';

    GO

    Select * from msdb.dbo.restorehistory order by restore_date

  • Can anyone help me? I would really appreciate it.

Viewing 7 posts - 1 through 6 (of 6 total)

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