ODBC access to an Advantage database that has no data dictionary: setting up the DSN and importing the tables

Applies to: Clarion 11 (as the dictionary named in the question) and Advantage tables (.adt), 2020.

Problem

The poster spent a day trying to view an Advantage table through ODBC, having typed the table definitions into a C11 dictionary by hand. The DSN setup asked for an Advantage dictionary, and there was none, only a folder of tables. How do you browse, report on and import such tables?

Solution

  1. Clarion's ODBC driver talks to the vendor's ODBC driver; without that driver it can do nothing. Install the vendor driver.
  2. Clarion can only use 32-bit ODBC drivers. Install the 32-bit vendor driver and configure it with the 32-bit administrator, C:\Windows\SysWOW64\odbcad32.exe. The 64-bit one is in C:\Windows\System32\odbcad32.exe despite the name, and is the default on 64-bit Windows.
  3. The Drivers page only shows the driver is installed. Add a User DSN: pick the Advantage driver and answer the questions (for Advantage this says how to reach the data; a button may test it).
  4. In the dictionary: Import Tables, Select Server = ODBC, then the arrow beside DataSource lists the DSNs, including the new one. Fill in the prompts: all tables import in Enterprise, one table in PE.
  5. A DSN-less alternative from another poster: set each table's Owner to !glo:Connect:ADV and build the string (driver name as ODBC32 reports it, DataDirectory, UID, PWD, ServerTypes=1 for embedded and other parameters) in code before the first OPEN.

Caveats

  • The thread does not say how the poster's DataDirectory was chosen for a folder with no dictionary; he thanked the helpers and said he was still at the basic DSN step.
  • The connection-string parameters in step 5 are one site's values; check them against the Advantage driver's documentation.

Today (2026)

Likely still right for 32-bit Clarion (the thread covers the 32-bit rule only); the exact Import Tables wording may differ on a current build. Not re-tested.

Sources: John W. (Mar 2020, the question), Sean H., Arnor B., Jon W., pratik (Apr 2020) in softvelocity.clarion.databasedrivers.