backup/restore

  • Hi,

    Where do I get the step by step sql scripts and explanations on how to get point in time restore?

    I have read about doing a full backup once a day, then a differential and transaction logs.

    But I do not find any practical examples which I can apply to the test database server to see if I can get back the data in a particular time.

    Can you guide me please?

    Thanks

  • BOL will take you through the syntax needed to do backups and restores

    BACKUP (Transact-SQL)

    RESTORE (Transact-SQL)

    http://msdn.microsoft.com/en-us/library/ms179451%28v=sql.105%29.aspx

    http://msdn.microsoft.com/en-us/library/ms190982%28v=sql.105%29.aspx - I would recommend once ready to run it via the GUI to actually use the script button on the top of the GUI and check the script as it can miss out the STOPAT clause meaing its not doing a PIT restore.

    To be able to do a PIT restore you need to restore the database and logs with the NORECOVERY option, then when you are restoring the last log in the chain, specify the STOPAT option and the RECOVERY option.

  • Is there a book or website I can refer to regarding your point "To be able to do a PIT restore you need to restore the database and logs with the NORECOVERY option, then when you are restoring the last log in the chain, specify the STOPAT option and the RECOVERY option. " ?

    Thanks

  • I have provided 4 links above which will guide you through the process.

    There is also the SQL Server Backup and Restore book by Shawn McGehee in the "Books" section of the site

  • Thank you

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

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