Using Vision to
Create E/R Diagrams
- Start Visio – Start > Programs > Microsoft Office
> Microsoft Office Visio 2003
- Choose Database category (on left)
- Choose Database Model Diagram
- Choose Conventions/ Notation to use – Database >
Options > Document
- On the General tab, make sure “Relational” chosen
- On the Relationship tab, make sure “Relationships”, “Crows
Foot”, “Show Verb Phrase”, and “Forward Text” are selected (not inverse)
- Adding entities – click on entity icon in left panel and
drag to desired location, then update properties:
- Under definition, type Conceptual Name in
- Under Columns, type info for each attribute – Physical
Name, choose data type, check if Required and/or PK
- Adding Relationships – click on relationship icon in left
panel, drag the end with the x to the entity that is referenced (border
will turn red), then drag other end to the referencing entity (entity with
the foreign key (FK)). Then update properties:
- Under Name, type Verb Phrase
- Under Miscellaneous, select most appropriate cardinality
(for the direction of the reference – the cardinality from the referenced
to the referencing)
- Under Referential Action, select the most appropriate
handling
- For any Optionalities that come out wrong that are not
controlled by the cardinality, adjust using whether the FK column is
required in the referencing entity.
- Save – File > Save> specify filename