问题
Is there a method to export SQL statements from a Viso 2003 entity-relationship diagram?
回答1:
If you're using Visio 2010 and have a 64-bit OS, this add-in may help: http://forwardengineer.codeplex.com/
回答2:
Depends on which edition of Visio you have.
There's an Enterprise edition pr Professional edition which has a database
menu item that will export (and import) database schema from Visio.
If you have some lower edition, you may not have any database engineering or reverse engineering features.
回答3:
I don't think it's possible with Visio, the best you can do is go to the SQL Server Diagram window (Database Diagram) and right click on the empty white space on the Diagram-- there's an option "Copy Diagram to Clipboard", you can paste in MSPaint or Photoshop.
来源:https://stackoverflow.com/questions/3506012/exporting-sql-from-a-viso-diagram