How to Reverse Eng Ms Access File

16
Open ModelSphere Guide How to Reverse Engineer a Microsoft Access File Author Marco Savard Credits Luc Poulin Date 2012 June 6th This guide explains how to reverse engineer a Microsoft Access File (.mdb or .accdb file) into Open ModelSphere. This tutorial was tested with Windows 7 and Open ModelSphere 3.2. 1) Create a new data source Open the Control Panel, add choose “Administration Tools”.

description

How to Reverse Eng Ms Access File

Transcript of How to Reverse Eng Ms Access File

Page 1: How to Reverse Eng Ms Access File

Open ModelSphere Guide

How to Reverse Engineer a Microsoft Access File

Author Marco SavardCredits Luc PoulinDate 2012 June 6th

This guide explains how to reverse engineer a Microsoft Access File (.mdb or .accdb file) into Open ModelSphere. This tutorial was tested with Windows 7 and Open ModelSphere 3.2.

1) Create a new data source

Open the Control Panel, add choose “Administration Tools”.

Page 2: How to Reverse Eng Ms Access File

Then, open Data Sources (ODBC):

Click the Add.. button.

Page 3: How to Reverse Eng Ms Access File

Select “Microsoft Access Driver” and press Finish. If you do not see the Microsoft Access Driver and you use a 32-bit Windows, skip to the Work-around section.

Enter the name of the data source (this could be the name of the .mdb or .accdb file), and press Select..:

Page 4: How to Reverse Eng Ms Access File

Select the physical file to associate with the data source:

After that, you should get a new data source with the name of your .mdb or .accdb file.

Page 5: How to Reverse Eng Ms Access File

1.1) Work-around for 32-bits Windows.If you only see SQL Server driver, you can try to start the 32-bit version of ODBC drivers.

Copy (CTRL-C) ”c:\windows\syswow64\odbcad32.exe” in the clipboard, open the cmd.exe program, and paste it. As cmd.exe do not support CTRL-V, right-click and choose paste.

Page 6: How to Reverse Eng Ms Access File

Type Add..

You should see the Microsoft Access Driver. Return to the previous section and continue.

Page 7: How to Reverse Eng Ms Access File

2) Connect Open ModelSphere to the data source

Start Open ModelSphere, and select Tools→Database→Connect..

Click the New.. button:

Page 8: How to Reverse Eng Ms Access File

Choose a configuration name (tip: give the same name as the Data Source), check ODBC, and enter the Data Source (this must be the same name chosen in the previous section).

It is recommended to press Test to ensure the ODBC driver is found (ODBC driver is automatically provided with the Windows distribution, Linux or Mac users may have to install ODBC driver on their machine to continue).

Page 9: How to Reverse Eng Ms Access File

Press Select to select this driver configuration:

Enter user name and password if applicable. Then press Connect:

Page 10: How to Reverse Eng Ms Access File

If you get this message, Allow access:

You get this message if you have successfully connected to the JDBC-ODBC driver. If you get a “Driver not Found” error message, consult the next section. Otherwise, go to the “Reverse Engineer Database” section.

Page 11: How to Reverse Eng Ms Access File

2.1) Problem: Data source not foundIf you get this message:

It's probably because you give a wrong name of the data source. Give the same name as you gave in the “Create a new Data Source” section and this should solve this problem.

Page 12: How to Reverse Eng Ms Access File

3) Reverse Engineer the databaseIn Open ModelSphere, and select Tools→Database→Reverse Engineering..

Create a new project (or an existing one) and click Next..

Page 13: How to Reverse Eng Ms Access File

Choose the physical file in the database field:

Select the latest version of MS Access, and press Next.

Page 14: How to Reverse Eng Ms Access File

Select the tables you want to reverse engineer (most of the time, select all, which is the default setting), and type Proceed.

Show details reveals the tables, columns, etc, that have been reverse engineered:

Page 15: How to Reverse Eng Ms Access File

Once the reverse engineering operation is completed, you should see the imported tables in your diagram.

Congratulations! You have successfully reverse engineered a Microsoft Access Database into Open ModelSphere.

Page 16: How to Reverse Eng Ms Access File

4) References• Microsoft Data Connectivity Components

http://www.microsoft.com/en-us/download/details.aspx?id=23734