简体   繁体   English

如何快速将表结构从Microsoft SQL Server 2008导出到Visio以创建ERD?

[英]How to quickly export table structure from Microsoft SQL Server 2008 to Visio to make an ERD?

I have a database with several tables in it (about 100). 我有一个数据库,其中有几个表(大约100个)。 Is there any sort of quick way to take the information about each table (or specific tables selected by me) and put it in a Visio format? 有没有一种快速的方法来获取有关每个表(或我选择的特定表)的信息并将其以Visio格式存储? I've seen a lot of information on how to export an ERD to a SQLServer schema, but I need to go the other way. 我已经看到了很多有关如何将ERD导出到SQLServer架构的信息,但是我需要另辟way径。

You can simply use Visio to do that! 您可以简单地使用Visio来做到这一点! It's a built-in functionality documented in Visio manual : 这是Visio手册中记录的内置功能:

Video tutorials are also available (take a look at this one for example, it's rather old, but there were no fundamental changes): one , two 也提供了视频教程(例如,看一下这个教程,它虽然很旧,但是没有根本的变化):

Mind that you'll need professional edition of Visio. 请注意,您将需要专业版的Visio。 Also mind that this functionality (reverse engineer) was dropped in Visio 2013 (ie you can use Visio 2003-2010 to accomplish that, but not the 2013) 还请注意,此功能(反向工程师)已在Visio 2013中删除(即,您可以使用Visio 2003-2010来完成此操作,但不能使用2013)

I'm not sure exactly what you're going for, but if you expand the database, and right click on "Database Diagrams" and select "New Diagram", you can select the tables, and it will create a diagram for you based on the tables, keys, and relationships. 我不确定您要做什么,但是如果您扩展数据库,然后右键单击“数据库图”并选择“新建图”,则可以选择表,它将基于您创建一个图在表,键和关系上。 It's a fairly user-friendly design, and while there's no way to export that to Visio or anything like that (as far as I'm aware), it can at least give you an idea of your database layout. 这是一个相当人性化的设计,虽然无法将其导出到Visio或类似的东西(据我所知),但它至少可以使您了解数据库的布局。

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

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