PostgreSQL: "Data source name not found and no default driver specified (IM002)" on a new install

Applies to: the ODBC and PostgreSQL drivers, every Clarion version; PostgreSQL 8.3 and later installers.

Problem

The application runs on the developer's machine. On the customer's machine it stops at File public.sys could not be opened. Error: Data source name not found and no default driver specified (IM002).

Solution

  1. The psqlODBC driver is not part of the PostgreSQL server installer (it was up to 8.2, not from 8.3 on). Install it separately: the "stack builder" that runs after the server install offers it, or download the psqlodbc msi. Without it the ODBC administrator lists no PostgreSQL driver and every connection returns IM002.
  2. If the owner string names a DSN, create that DSN on the machine; a DSN-less owner string needs only the driver.
  3. For clients on other machines, two server-side settings: listen_addresses in postgresql.conf, and the client addresses allowed in pg_hba.conf. The default listens on localhost only.

Caveats

Running the application on the server itself still needs the ODBC driver installed there; the server package does not bring it.

Today (2026)

Unchanged: psqlODBC is a separate download, and the two configuration files still gate remote access.

Sources: Rocky P. (Feb 2008, the question), Geoff T., Michael G., Guy C., Jack W. (Feb 2008) in softvelocity.clarion.databasedrivers.