每日构建和 SQL Server 更改
我将尝试自动化日常构建,这将涉及数据库更改、代码生成,当然还有构建、提交和稍后的部署。 目前,团队中的每个开发人员分别将他们对数据库的结构和数据更改包含在两个文件中,例如6.029_Brady_Data.sql。 每个结构和数据文件都包含一个版本的所有更改,但所有更改都是可重复的,即带有 EXISTS 检查等,因此如果需要,它们可以每天运行。
我能做些什么来使这个过程更加有序,目前基本上是连接所有结构更改文件,重复运行它们直到解决所有依赖关系,然后重复数据更改文件。
I am about to try and automate a daily build, which will involve database changes, code generation, and of course a build, commit, and later on a deployment. At the moment, each developer on the team includes their structure and data changes for the DB in two files respectively, e.g. 6.029_Brady_Data.sql. Each structure and data file includes all changes for a version, but all changes are repeatable, i.e. with EXISTS checks etc, so they can be run every day if needed.
What can I do to bring more order to this process, which is currently basically concatenate all structure change files, run them repeatedly until all dependencies are resolved, then repeat with the data change files.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 Visual Studio 数据库版本创建一个数据库项目,将其放入源代码管理中并让开发人员签入他们的代码。 我已经做到了这一点,它非常适合日常构建,并为构建数据库代码提供了大量支持。 请参阅此博客文章了解功能
http://www.vitalygorn.com/blog/post/2008/01/Handling-Database-easily-with-Visual-Studio-2008.aspx
Create a database project using Visual studio database edition, put it into source control and let the developers check in their code. I have done this and it works good with daily builds and offer a lot of support for structuring your database code. See this blog post for features
http://www.vitalygorn.com/blog/post/2008/01/Handling-Database-easily-with-Visual-Studio-2008.aspx