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.
是否有系统的方法将数据迁移脚本与 SSDT 发布相结合?
例如,部署需要新权限的新功能以一系列插入的形式添加到数据库中。
我知道我可以只编辑生成的发布脚本,但是如果需要重新生成脚本,您必须记住重新添加数据迁移脚本。
推荐的做法是使用部署后脚本。这篇博文进一步描述了这种方法:
http://blogs.msdn.com/b/ssdt/archive/2012/02/02/including-data-in-an-sql-server-database-project.aspx