我的客户端将SQLServer2008CloudVersion作为测试服务器,在这里,我们在7个月前部署了我的application.This部署的SQL数据库。因为在这7个月中测试应用程序时,客户端添加了大量数据。但是,根据新的要求,我们在现有表的末尾增加了表和列的数量。现在我想更新客户端测试服务器数据库,但是他的数据不应该影响。从开发服务器到客户端测试服务器备份和恢复这些更新的正确方法是什么?我们使用server 2008 R2作为开发服务器。
发布于 2015-01-14 13:57:38
你应该有个计划。例如,我们这样做:
1. Compare 2 databases with some compare tool(we use RedGate)
2. Generate migration scripts for structure that will update database structure
3. Generate migration scripts for data that will update new columns and will fill classification tables etc.
4. Take full backup before applying migration scripts
5. Run migration scripts
6. Update App version on clients if necessary.https://stackoverflow.com/questions/27944213
复制相似问题