database diagrams

  • When i click on database diagrams after changing the dbo owner to sa, it creates a database diagram automatically but t doesnt work for all the databases.why so? please help?

    will the database diagram give the whole Entity relationship structure of the database?

    Thanks!!

  • It'll only work on defined foreign key constraints. Is it possible that the database(s) that won't render doesn't have those set up in it?

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • so is there a way i can get the entity relationship diagram of a database?

  • Describe what you see when you try to create a diagram for the databases it doesn't work. Do you get a message?

    Greg

  • no i dont get any message.i am not trying to create for specific objects.

    what i really need is a entity relationship diagram of the database that gives a whole overview of the database objects & the entity relationship.

    if the database diagram can provide this, id like to know how it can be done..

    Thanks!!

  • Does the database in question have foreign key constraints set up?

  • Start by adding a table or group of tables to a new diagram. Select all tables and run "Add related tables". Repeat until no more tables are added. They will be all piled up together, so you can use automatic layout to spread them out. Then spend the rest of the afternoon rearranging the diagram.

    This will only pick up tables with defined foreign keys.

    If you have access to Visio, the "reverse engineer" function will pull in all table definitions.

  • RedGate and ApexSQL also both sell software that's designed to help document SQL databases. I think you can get free trials from both. You might try those. Might be much better than a simple diagram.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

Viewing 8 posts - 1 through 7 (of 7 total)

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