Create DB in SQL Server based on Visio Data Model

烂漫一生 提交于 2019-12-30 07:43:08

问题


I have created a database model in Visio Professional (2003). I know that the Enterprise version has the ability to create a DB in SQL Server based on the data in Visio. I do not have the option to install Enterprise. Aside from going through the entire thing one table and relationship at a time and creating the whole database from scratch, by hand, can anyone recommend any tool/utility/method for converting the visio database model into a SQL Script that can be used to create a new DB in SQL Server?


回答1:


I have not done this, but here it goes.

  1. Convert Visio file to Visio XML format.
  2. Use Dia for Windows and Dia VDX plug-in to convert Visio XML into Dia.
  3. Use tedia2sql to generate SQL.



回答2:


For visio 2010 there is nice plugin Visio Forward Engineer:

http://forwardengineer.codeplex.com/




回答3:


If you can somehow obtain the type library from the enterprise version you can use VBA to get out the definitions. Secondhand enterprise architect versions of VS 2002 and VS 2003 can be brought from ebay for a few hundred dollars.



来源:https://stackoverflow.com/questions/37672/create-db-in-sql-server-based-on-visio-data-model

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!