SQL Server 2000/2005 - 维护开发版本和生产版本
我习惯通过创建数据库对象定义来使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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.
没有内置工具可以使它们保持同步(据我所知),但 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?