Reverse Engineering Entity Relationship Diagrams for SS2005

  • Does anyone know how to reverse engineer Entity Relationship Diagrams for Sql Server 2005 (or indeed Sql Server 2000) without using a proprietary (something you've paid money for) 3rd party app?

    Thank in advance much appreciated

  • Hey,

    Have you tried using the built-in diagramming tool, which exist in both versions? In SQL Server 2000 EM and 2005 SSMS, this is under the database name container.

    Thank you,

    Phillip Cox

  • Hi there,

    Thanks for the suggestion but I cannot see what you've described. If you have a database called Containers, maybe someone has installed a 3rd party app in the past which created such a DB, but it certainly isn't out-the-box?!

    Thanks anyway,

    PTID

  • I think you may have misunderstood what Philip meant by "container". If you expand the list of options under the database in EM/SSMS, the first item in the list should be "Diagrams" (2000) or "Database Diagrams" (2005). Right-click to create a new diagram.

  • Sorry Phillip - spelled your name wrong in my last reply. :crying:

  • Hi Andrew,

    No worries, more importantly have you managed to reverse engineer the database?

    Thanks,

    Phillip

  • Er...it wasn't me that was having the problem. 😉

  • Ooops! Sorry Andrew, too excited.

  • Cool thanks guys, that works a treat.

    I also found a ERD reverse engineering tool in Visio which is a bit more polished but then of course you pay for it 🙂

    Thanks again,

    PTID

  • Visio is definitely better than the diagramming tool that comes with SSMS. You can also get a VERY nice modeller from Embarcadero called ERStudio for a really good price if you specify you want a SQL Server only license.

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • I've made extensive use of the SS EM (2000) diagramming tool. It has a few issues, but the main one is that there's no supported way to archive the diagrams to migrate them to a new database. I use BCP to dump the dtproperties table, then create an empty diagram (without saving) in a revised database to re-create dtproperties, then load the dumped table again using BCP. The diagrams will open and incorporate any new columns and foreign-key relationships, and of course will complain about any missing tables. But then you can add any new tables and adjust the layout, before saving and dumping again.

    To get a diagram to pass around your team, just print to PDF (or via a postscript print-to-file than use Ghostscript).

  • Yep, Visio is great, but the diagrams are UML diagrams and those are not exactly ER models. In the company I work for they require the diagrams to be ER diagrams. I think I am going to try the ER/Studio.

  • Jportelas (12/2/2009)


    Yep, Visio is great, but the diagrams are UML diagrams and those are not exactly ER models. In the company I work for they require the diagrams to be ER diagrams. I think I am going to try the ER/Studio.

    That is not true. You CAN do explicit industry-standard database models in Visio. Perhaps it is a feature only available in a higher edition of Visio than you have?

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

Viewing 13 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic. Login to reply