问题
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.
- Convert Visio file to Visio XML format.
- Use Dia for Windows and Dia VDX plug-in to convert Visio XML into Dia.
- 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