I'm doing some web development contract work this summer, and my scenario/task is this.
The environment is broken up into Production / Staging / Testing / Local Dev All environments are running MS SQL Server 2000. I have no control over what SW they are running, so please, no "just upgrade already" replies. The project has several core databases, and separate (structurally identical) databases for each client project. These environments are all on different machines. I am SQL Server competent, but by no means am I a DBA...and no DBA exists at this company. In fact, right now, because of a number of staffing changes, I am the only developer working on this project.
The task is to be able to copy a databases from production (and the source will always be production) down to staging or testing. Finally, all of these tasks need to be scriptable as SQL statements. What is the most sensible approach to this? As I see it, my options are:
1) running a backup job on production, saving the backup file to a server that both database servers can see, and then do a restore to the target machine
2) Using the script generated from the DTS import/export wizard.
Can someone shove me in the right direction as to which approach is most sensible?
Thanks,
Pete
The environment is broken up into Production / Staging / Testing / Local Dev All environments are running MS SQL Server 2000. I have no control over what SW they are running, so please, no "just upgrade already" replies. The project has several core databases, and separate (structurally identical) databases for each client project. These environments are all on different machines. I am SQL Server competent, but by no means am I a DBA...and no DBA exists at this company. In fact, right now, because of a number of staffing changes, I am the only developer working on this project.
The task is to be able to copy a databases from production (and the source will always be production) down to staging or testing. Finally, all of these tasks need to be scriptable as SQL statements. What is the most sensible approach to this? As I see it, my options are:
1) running a backup job on production, saving the backup file to a server that both database servers can see, and then do a restore to the target machine
2) Using the script generated from the DTS import/export wizard.
Can someone shove me in the right direction as to which approach is most sensible?
Thanks,
Pete