Restore dev database on a weekly basis, will this break SSC?
dbdmora
Posts: 50
Hello, we have dev databases that need to be updated with the latest data once a week. What we plan to do is tell developers to commit their code every night into SSC, then on the weekend we would restore the dev database from production so they have the latest data come Monday morning. Then we would do a 1 time get latest to ensure the dev DB has the same code as SSC because not all code will be deployed to production.
If we do this, will the link to SSC break for developers who have it linked? Is there a way to automatically get the latest by running a batch file? Thanks for any imput.
If we do this, will the link to SSC break for developers who have it linked? Is there a way to automatically get the latest by running a batch file? Thanks for any imput.
Comments
What is driving the weekend restore? Have you got a build automation tool?
Which source control system are you using?
David Atkinson
Red Gate
Product Manager
Redgate Software
SSC will not care if we restore a database that it is linked to?
What automation mechanism will be used to refresh the database?
Do you have a shared database or dedicated dev databases?
Product Manager
Redgate Software
Do you have an article I can read that will help me setup sql compare to do a get latest from SSC to our restored Database? I am sure we would have to put this in a batch file of some sort, so we can automate it.
This might work (replace the values in square brackets with yours):
Once you've got the DB scripts in a folder, you can use the SQL Compare command line as follows:
If you're using SQL Server authentication, you'll need /UserName2: and /Password2:
More information about the SQL Compare command line can be found here:
http://www.red-gate.com/supportcenter/C ... _in_the_cl
Product Manager
Redgate Software