简体   繁体   English

备份SQL Server 2008图表

[英]Backup SQL Server 2008 diagrams

how can I backup the SQL Server 2008 diagrams ? 如何备份SQL Server 2008图表? I need to move some diagrams from data base to another has the same tables and everything but has more stored procedures , functions and so on ? 我需要将一些图表从数据库移动到另一个具有相同表且所有内容都具有更多存储过程,函数等的图?

Copying a table from one database diagram to another diagram adds a reference to the table in the second diagram. 将表从一个数据库图复制到另一张图会在第二张图中添加对该表的引用。 The table is not duplicated in your database. 该表在您的数据库中没有重复。 For example, if you copy the authors table from one database diagram to another, each diagram references the same authors table in the database. 例如,如果将authors表从一个数据库图复制到另一个数据库图,则每个图都引用数据库中的同一authors表。

To copy a table from another database diagram 从另一个数据库图复制表

Make sure you are connected to the database whose table you want to copy. 确保您已连接到要复制其表的数据库。

Open the source and target database diagrams and within the source diagram, select the table that you want to copy to the target diagram. 打开源数据库图和目标数据库图,并在源图内选择要复制到目标图的表。

Click the Copy button on the toolbar. 单击工具栏上的复制按钮。 This action places the selected table definition on the Clipboard. 此操作将选定的表定义放置在剪贴板上。

Switch to the target diagram. 切换到目标图。 This diagram must be in the same database as the source diagram. 该图必须与源图位于同一数据库中。

Click the Paste button on the toolbar. 单击工具栏上的“粘贴”按钮。 The Clipboard contents appear at the new location and remain highlighted until you click elsewhere. 剪贴板内容显示在新位置,并保持突出显示状态,直到您单击其他位置为止。 If relationships exist between the selected tables and other tables in the target diagram, relationship lines are automatically drawn. 如果目标图中所选表与其他表之间存在关系,则会自动绘制关系线。

When you edit the table in either diagram, your changes are reflected in both diagrams. 在任何一个图中编辑表时,所做的更改都会反映在两个图中。 Similarly, once you save the table in either diagram, the table is no longer considered "modified" in either diagram. 同样,将表保存到任何一个图中后,该表在任何一个图中都不再被视为“已修改”。

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

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