寻找好的“创造”数据库脚本工具(不是差异脚本)

发布于 2024-08-19 05:20:41 字数 249 浏览 7 评论 0原文

我正在寻找一个数据库脚本工具,它可以执行以下操作:

  1. 为数据库中的每个表创建“创建脚本”并将它们放在单独的文件中。注意:这些文件不应包含关系约束。
  2. 创建用于关系约束的脚本(作为一个文件或多个文件,并不重要)
  3. 创建用于填充表的插入脚本。

我们将把脚本放入 tfs 中,并且它们会经常更新,因此快速高效的工具是非常首选的。我将把这些脚本集成到 msbuild 中,为我们的集成测试创建一个数据库。

I'm looking for a db script tool which can do the following:

  1. Create "create-scripts" for each table in the database and place them in separate files. Note: these files should not contain relational constraints.
  2. Create scripts for relational constraints (as one file or many, doesn't matter)
  3. Create insert scripts for populating tables.

We are going to put the scripts into tfs and they will be updated fairly often, so a tool which is fast and efficient to is highly preferred. I'm going to integrate these scripts into msbuild to create a database for our integration tests.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我不是你的备胎 2024-08-26 05:20:41

您应该使用 Visual Studio Database Professional。如果您使用的是 Visual Studio 2010,它包含在 Ultimate(或许还有其他版本)中。对于 Visual Studio 2008 Team Developer,它是免费下载的。使用 MSBuild 进行部署非常出色且简单。您存储的所有脚本都是创建脚本,按类型细分,类似于您在问题中指定的类型。

You should use Visual Studio Database Professional. If you are using Visual Studio 2010 it is included with Ultimate (and perhaps other versions). For Visual Studio 2008 Team Developer it is a free download. It is fantastic and easy to deploy using MSBuild. All of the scripts that you store are create scripts, broken down by type similar to what you specified in your question.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文