corner graphic spacing graphic spacing graphic
  WWU home page Dr. Steve Ross home page MIS 421 title graphic
Database Management Systems
Course Grades | Final Exam | Final Project Grades

Reverse Engineering an Access Database

Reverse Engineering an Access Database in Visio is a quick and easy way to document your work. These instructions refer specifically to Visio Professional 2002 SP-2, which is installed on the MIS notebook computers. Note: If you wish to print these instructions, set the Page Setup to Landscape mode.

Start Visio. Normally, you will see the “Choose Drawing Type” dialog (see below); choose “Database” as the Category, then the Template “Database Model Diagram.”

Choose Drawing Type

You will see a blank drawing surface, with a set of shapes on the left.

New Drawing

Choose the menu item Database, then Reverse Engineer... from the drop-down list. This starts the Reverse Engineer Wizard (see following figure). In the Installed Visio drivers list, choose “Microsoft Access.” The Data source for your database is probably not in the list of Data sources; therefore, click the New... button.

Reverse Engineer Wizard, 1st screen

Choose “User Data Source,” then click Next >.

Create New Data Source, 1st screen

Choose “Microsoft Access,” then click Next >.

Create New Data Source, 2nd screen

On the following screen (not shown), click Finish.

The next screen allows you to name and describe the data source, then indicate its location. The name must be unique (vis-a-vis the other data source names on the first screen of the wizard). The Select… button allows you to browse to find the database. Once the information is entered, click OK.

Create New Data Source, 4th screen

You will be taken back to the first screen, with your new data source highlighted (see below). Click Next >.

Reverse Engineer Wizard, 1st screen

You will be asked to enter your User ID and Password. After entering these – if any – click OK.

Connect Data Source screen

The next screen requires you to select object types to reverse engineer. I usually uncheck Views. Click Next >.

Reverse Engineer Wizard, 2nd screen

On the next screen, Select All tables, or those that you want to include and click Next >.

Reverse Engineer Wizard, 3rd screen

Add the shapes to the current page and click Next >.

Reverse Engineer Wizard, 4th screen

Review your choices, then click Finish.

Reverse Engineer Wizard, final screen

Visio will extract the database structure and arrange it automatically for you. Click the X at the lower left corner of the Output to close that window and change the magnification (near the upper right of the window) to something more legible (e.g., 75%).

The Drawing with all shapes added

To change the style of the ERD to something more familiar, choose Database, Options, Document…   On the General tab, I usually set the symbol set to Relational and use Physical Names; On the Table tab I choose to Show physical data types; On the Relationship tab I click Crow's feet.

Database Document Options, General tab    Database Document Options, Table tab
 
Database Document Options, Relationship tab

You may have to fiddle with it a bit to get a pleasing display.

Finished ERD

Don't forget to save your work!

This is a living document that is subject to revision during the course of the class. Last revised Friday, November 03, 2006; at 8:47:44 AM.