Hyperlinks To Files
To create a hyperlink on a diagram to an external file, simply click on the file in a file list (such as Windows Explorer) or on your Desktop and drag it onto the diagram.
A short context menu displays with two options - Hyperlink and Artifact. Click on the Hyperlink option to create the hyperlink on the diagram.
The link is effective immediately, and you can right-click on it to add or change properties as necessary.
Files of most types - including .sql and .ddl - are opened within the appropriate Enterprise Architect code editor.