Editors Note
You could create an ER diagram automatically from SQL file by using this diagram creator application. It supports to create or alter the table and create index. The SQL dialects of oracle, MySQL, MS access and MSSQL would be supported in this software and the output file will be saved as png, gif, jpg, postscript etc.