简体   繁体   English

SQL-SSMS2005-如何将数据库图复制到另一个数据库?

[英]SQL - SSMS2005 - How do I copy a database diagram to another database?

Is there a simple method for copying a database diagram from one database server to another? 是否有一种简单的方法将数据库图从一个数据库服务器复制到另一台服务器?

I have a diagram on a development server that needs to be moved to the production server. 我在开发服务器上有一个需要移到生产服务器的图。

Thanks 谢谢

(Sql server 2005, SSMS2005 Express) (SQL Server 2005,SSMS2005 Express)

您可以尝试将codeproject 脚本SQL Server 2005图表转换为文件

In SQL Server 2005, database diagrams are stored in the sysdiagrams table. 在SQL Server 2005中,数据库图存储在sysdiagrams表中。 You should be able to use the Import/Export wizard to copy the diagram data from one server to another. 您应该能够使用导入/导出向导将图表数据从一台服务器复制到另一台服务器。 I ran a quick test and was able to copy a diagram from one database to another of the same server using the wizard. 我进行了快速测试,并能够使用向导将图表从一个数据库复制到同一服务器的另一个数据库。 This was tested on a SQL Server 2005 Standard installation. 已在SQL Server 2005 Standard安装上进行了测试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM