
Tutorial > Connectivity > ODBC
Connecting to Access tables using ODBC
This tutorial will guide you through the
process of setting up ODBC drivers. We will use an MS Access file
as an example, but the steps are the same whichever ODBC driver
you are using.
To get to Access data, you will be
creating:
- ODBC Data Source
- BDE Driver
- BDE Alias
Once the BDE Alias is available you can use
that name to get to the Access data.
The following steps will get you
connected to an Access 2.0 database and table:
- Using
the ODBC Administrator (Start > Settings > Control
panel > ODBC 32), set-up a datasource for your
database.
1. Click on add, select Microsoft Access Driver,
click OK.
2. Enter MYDSN as the name.
3. Click on database Select and locate
the MS Access data base you wish to use. We have provided
a sample data base, sig.mdb, located in
samples\charts\access\ under the Sigma install directory.
4. Click OK and then Close
the Data Sources window.

- Load the BDE
Configuration utility (Start > Programs >
Sigwin32 > BDE Config 32).

- Select New ODBC Driver.

- Give the driver a name (call
it ODBC_MYDSN).
- In the driver combo box
select, "Microsoft Access Driver (*.mdb)"
- In the name combo box select MYDSN
- Press OK
- Go to the Alias page.

- Select New Alias.

- Enter MYDSNALIAS
for name.
- For Alias Type, select ODBC_MYDSN.
- Press OK
- Select Save from the File
menu.
- Select Exit from the File
menu.
- Run AT Sigma SPC (Start >
Programs > Sigwin32 > AT Sigma for gages).
- Press the New button
at the top left of Sigmas tool bar or select . You
will see the "Setup SPC" dialog box.

- Fill in all fields as needed
up to the Alias edit field.
- Enter MYDSNALIAS
in the Alias edit field or click on
List... and select MYDSNALIAS.
- Click on Find...
by the Nable Name Input box and select RR.
- Press the Add button
under fields to analyze to add fields.
- Select 0635 Diameter
from the drop down menu and press OK. In
the next window press OK to accept
defaults.
- In the same was as described
in the previous step, add fields 0317 diameter
and Tongue Flatness.
- When the three fields are
added, press the OK button.
- Save the file as myaccess
in samples\access\.
- Now open this new Sigma SPC
file by selecting . File > Open and select myaccess.spc
