SQL Server 2000/2005 - 维护开发版本和生产版本

发布于 2024-07-24 03:06:15 字数 238 浏览 1 评论 0原文

我习惯通过创建数据库对象定义来使用 Oracle Designer,然后创建连接到数据库实例所需的 DDL SQL。

例如,当向表添加新列时,首先将其添加到表定义中,然后针对开发版本生成 DDL SQL 并运行它,然后在测试后我指向 Production 实例以在 Production 中创建缺少的列。

鉴于 SQL Server 中没有设计器,向两个数据库实例添加列的正确过程是什么? 是否有工具可以保持架构同步?

I am used to using Oracle Designer by creating database object definitions, then creating DDL SQL required by connecting to a database instance.

For eaxmple, when adding a new column to a table, first I add it to the table definition, then generate the DDL SQL against the development version and run it, then after testing I point to the Production instance to create the missing column in Production.

Given that there is no Designer in SQL Server what is the correct procedure to say add a column to both database instances? Is there a tool for keeping the schemas in sync?

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

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

发布评论

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

评论(2

冷清清 2024-07-31 03:06:16

RedGate 提供了一种名为 SQL Compare 的产品,可用于通过脚本找出不同数据库之间的差异。

请参阅:http://www.red-gate.com/products/SQL_Compare/ index.htm

您还可以使用 SQL Server Management Studio 中的数据库图表来设计数据库架构,但这将仅限于给定的数据库内。

RedGate offer a product called SQL Compare, that can be used to script out the differences between different databases.

See: http://www.red-gate.com/products/SQL_Compare/index.htm

You could also use the Database Diagrams within SQL Server Management Studio to design your database schema however this would be constrained to within a given database.

数理化全能战士 2024-07-31 03:06:16

没有内置工具可以使它们保持同步(据我所知),但 RedGate 有一些用于此目的的商业应用程序。

SQL Server 中没有设计器是什么意思? 您使用的是 SQL Server Management Studio吗?

There isn't a built in tool for keeping them in sync (that I know of), but RedGate has some commercial apps for this.

What do you mean there is no designer in SQL Server? Are you using SQL Server Management Studio?

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