Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

backup/restore Expand / Collapse
Author
Message
Posted Thursday, November 8, 2012 5:42 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, October 17, 2014 7:28 AM
Points: 155, Visits: 202
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
Post #1382436
Posted Thursday, November 8, 2012 5:50 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Monday, December 8, 2014 1:45 AM
Points: 5,221, Visits: 5,120
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.




Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1 & Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger

Post #1382441
Posted Thursday, November 8, 2012 6:10 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, October 17, 2014 7:28 AM
Points: 155, Visits: 202
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
Post #1382447
Posted Thursday, November 8, 2012 6:16 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Monday, December 8, 2014 1:45 AM
Points: 5,221, Visits: 5,120
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





Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1 & Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger

Post #1382453
Posted Saturday, November 10, 2012 2:34 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, October 17, 2014 7:28 AM
Points: 155, Visits: 202
Thank you
Post #1383351
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse