Showing posts with label generate. Show all posts
Showing posts with label generate. Show all posts

Sunday, March 11, 2012

Database Diagrams, SQL Server 2005

Hi everyone,

I was wondering if there is any way to generate a database diagram with foreign key relationships automatically generated between tables in SQL Server 2005... My initial investigations has yielded no, but I'd like to be sure.

Thank you

Chris

The database diagramming tool won't automatically create foreign key contraints on your tables. You can explicitly create foreign key relationships in a diagram by clicking on one table and dragging the relationship line to the related table.

If you have two existing tables with a foreign key relating them, the relationship line should automatically display in the diagram as soon as you add both tables to the diagram.

Hope this helps,
Steve

|||Thank you very much Steve, very helpful.

Thursday, March 8, 2012

Database Diagrams

Hi
Why is it that when I generate an ERD, all the tables come
up flat (i.e. no relationships drawn between the tables)?
Thanks
JDo you have foreign key constraints defined on the tables?
"J" <anonymous@.discussions.microsoft.com> wrote in message
news:0be301c3ad5b$db3b1f60$a001280a@.phx.gbl...
> Hi
> Why is it that when I generate an ERD, all the tables come
> up flat (i.e. no relationships drawn between the tables)?
> Thanks
> J|||Yes.
>--Original Message--
>Do you have foreign key constraints defined on the tables?|||Can you generate a script which we can execute for your DDL so we can try to reproduce?
--
Tibor Karaszi, SQL Server MVP
Archive at: http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
"J" <anonymous@.discussions.microsoft.com> wrote in message
news:062d01c3ad61$40ada2a0$a301280a@.phx.gbl...
> Yes.
> >--Original Message--
> >Do you have foreign key constraints defined on the tables?
>

Database diagram to SQL tables

Dear Ng,
I have a Visio database diagram. How can I generate my tables from there to
the SQL server?
Many thanks and best regards,
Patrick
For Visio 2003 - Tools - Export Database and follow the wizard steps.
Cristian Lefter, SQL Server MVP
"Patrick" <Patrick@.discussions.microsoft.com> wrote in message
news:676A3402-4EB8-483E-97BA-CFC6A6C4A98E@.microsoft.com...
> Dear Ng,
> I have a Visio database diagram. How can I generate my tables from there
> to
> the SQL server?
> Many thanks and best regards,
> Patrick