Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试在 Visual Studio 2010 中使用数据库项目的“发布”功能重新创建数据库时自动恢复老化的数据。有谁知道我必须为此功能选择哪个偏好?
发布“新”数据库时没有恢复数据的选项。您需要构建一个脚本来填充所有必要的对象或以其他方式将数据传输回数据库。
Red-Gate 的 SQL 数据比较可能对此任务有用,或者您可以找到一种方法来生成稍后可以调用的脚本。
如果您只想更新架构,我会检查您的发布设置以确保您没有选择“始终重新创建数据库”选项。