Best way to auto-restore db on an houlry basis
Posted
by aron
on Stack Overflow
See other posts from Stack Overflow
or by aron
Published on 2010-05-24T16:47:22Z
Indexed on
2010/05/24
16:51 UTC
Read the original article
Hit count: 337
Hello, I have a demo site where anyone can login and test a management interface. Every hour I would like to flush all the data in the SQL 2008 Database and restore it from the original.
Rae Gate sql has some awesome tools for this, however they are beyond my budget right now.
Could I simply make a backup copy of the database's data file, then have a c# console app that deletes it and copies over the original. Then I can have a windows schedule task to run the .exe every hour.
It's simple and free... would this work?
I'm using SQL Server 2008 R2 Web edition
I understand that red gate is technically better because I can set it to analyze the db and only update the records that were altered, and the approach I have above is like a "sledge hammer".
© Stack Overflow or respective owner