MS Visio Professional 產生sql

來源:互聯網
上載者:User

Visio支援資料庫建模,但是professional版本不包含正向工程功能,即無法產生sql。這真是令人痛恨,還好有OrthogonalToolBox這樣的工具。這是一個非常有趣的軟體,安裝之後它並沒有程式功能表項目,無法直接啟動,而是在其它應用程式裡增加一個工具條。

可以在OrthogonalToolBox  裡開啟一個visio建立的資料庫模型,然後將其匯出成xml,並選擇"ER to SQL XSLT Transform"這個xslt作為style。然後在IE裡開啟這個XML,就可以看到sql代碼了。

這個XSLT是為MS SQL Server設計的,但是將其修改成產生其它資料庫的sql也很簡單,或者直接在產生的sql文本上做Regex替換也是個不錯的主意。  

 

http://blog.csdn.net/pinxue/archive/2006/10/05/1322090.aspx

 

 

Installation Instructions
To install Orthogonal Toolbox:

  1. Download the zip file and extract the contents of the zip file to any (temporary) location.
  2. Run (Start | Run… then Browse… to the extract location) setup.exe.
  3. Follow the instructions of the installation utility.
  4. Once installation is complete, you can access Orthogonal Toolbox by opening/creating an ORM Source Model and/or a Database Model Diagram within Visio.
  5. Look for the toolbar titled “Orthogonal Toolbox”. If the toolbar is not visible, it can be made visible via View | Toolbars | Orthogonal Toolbox.
  6. Once the toolbar is visible, you can use the utility by clicking the button labeled “Orthogonal Toolbox”.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.