I have several production tables that I would like to keep in synch(at least bi-weekly) with our dev tables. I was wondering if this could be automated but I am not sure exactly how to do so. By dev tables, its really just development for reporting. SQL query dev work is done on these tables before moving into production. So, I am looking to copy the data and the table schema every few weeks. If there are new columns in a production table, it will need to be copied into the dev tables too.
What is the best mechanism for doing this?
Would it be:
1)drop dev table
2)recreate the new dev table(is there a way of getting exact create statement from the same prod table?)
3)copy the data to the newly created dev table
Is this all doable and something that could be automated? Does anyone have a sample on how to accomplish the above ?
Thanks.
What is the best mechanism for doing this?
Would it be:
1)drop dev table
2)recreate the new dev table(is there a way of getting exact create statement from the same prod table?)
3)copy the data to the newly created dev table
Is this all doable and something that could be automated? Does anyone have a sample on how to accomplish the above ?
Thanks.