Home Forums Programming General Can you compare an older SQL Server Snapshot to a newer one and recreate any changes made? RE: Can you compare an older SQL Server Snapshot to a newer one and recreate any changes made?

  • acapone (8/27/2014)


    Thanks Jack. Is it possible to restore backups to an older version of the database?

    What I mean is the database backups will be taken from one server, and then restored on a different server that has the same database but about two weeks behind in data.

    Do you see that being a problem at all?

    Thanks.

    If you are restoring over an existing database you need to specify WITH REPLACE. Typically when restoring a database on a different server the RESTORE command will look something like this:

    RESTORE DATABASE [DatabaseName] FROM DISK = 'Backup Path' WITH

    MOVE 'datafile1' TO 'data file path\physical_file_name.mdf',

    MOVE 'logfile' TO 'log file path\physical_file_name.ldf',

    REPLACE /* only needed if the database already exists */