My application has two databases that are exactly the same. One is a LIVE database that is actual work data. I also have a TEST database that is exactly the same SCHEMA as the LIVE. I allow the users to log in to either the LIVE or TEST database. The TEST is used for training and working on new stuff that will be later implemented in the LIVE environment.
What is the best and easiest way to be able to duplicate the LIVE database over to the TEST database? It could be a year later, and the LIVE database has current data in it, so when you playing in the TEST environment you would be best served if you had current data.
I currently have my clients just restore a back up of the LIVE to the TEST database. But it sure would be nice if I had a script or something that I can just run from my application (Web Application) that I can say basically COPY the LIVE Database Structure and Data over to the TEST Database.
Any good ideas out there?