
Tutorial > Connectivity > ODBC
Connecting to Access tables in 16-bit
AT-Sigma SPC
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. (Note that under Windows 95/NT Sigma can read MS
Access directly without setting up ODBC. More info here.)
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,
set-up a datasource
for your database. Be sure to specify a path to your mdb
file. For the purposes of this explanation we'll say that
the datasource name is MYDSN.

- Load the BDE Configuration
utility.

- 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 MYDSN 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.
- To edit an existing SPC
file skip to step 23. Continue with the next step to
create a new SPC file.
- Press the New button
at the top left of Sigmas tool bar. You will see
the "Setup SPC" dialog box.

- Fill in all fields as needed
up to the Alias edit field.
- Enter MYDSN in the Alias edit
field.
- Enter your table name in the
Table Name edit field.
- Press the Add button
to add fields as necessary. Enter a user name and password
for your Access 2.0 database if necessary. See
the users guide or help file for details.
- Press the OK button. Now open
this new Sigma SPC file.
Editing an existing SPC file:
- In AT Sigma SPC, use Setup|SPC
Edit from the pull down menus. Select your SPC file
from the Open dialog box. Press OK. You will see the "Setup
SPC" dialog box.
- Enter MYSDN in the Alias edit
field.
- Enter your table name
in the Table Name field.
- Add "Fields to
Analyze" as needed. Enter a user name and password
for your Access 2.0 database if necessary. See
the users guide or help file for details.
Press the OK button. Now open this
new Sigma SPC file.
