Applies to: PostgreSQL 9.2 through an ODBC System DSN; the Clarion version is not named.
Problem
The Owner was a DSN-less string (SERVER=...;PORT=5432;DRIVER=PostgreSQL;DATABASE=...;UID=...;PWD=...;Unicode=true;charset=utf8). The connection worked, but when the application ran it asked the user to select the data source. The poster wanted it to use the System DSN by default.
Solution
- Check that the variable you fill with the connection string is the variable the file's Owner names. The poster's cause was two global variables with almost the same name and different prefixes, so he populated the wrong one.
- To use a DSN, put only the DSN name in the owner string:
DSN=mydsn. The first answer was that this is all it takes. - For a DSN-less connection, both answers say it works. One poster builds it as
DRIVER={name of the PostgreSQL ODBC driver};SERVER=...;PORT=...;DATABASE=...;UID=...;PWD=...;UseDeclareFetch=1;Fetch=100;. Another gaveDriver=PostgreSQL ODBC Driver(UNICODE);server=...;UID=...;PWD=...;database=...;PORT=...;.
Caveats
- Step 2 did not stop the prompt for the poster; his string was fine and the variable was the problem.
- Reading PROP:ConnectionString after the connection showed a
DSN=PostgreSQL35W;DATABASE=...form; this helped him compare what the driver used. - The driver names depend on what is installed; the thread's two spellings differ.
Today (2026)
Likely unchanged: the Owner string is still the connection string, and a wrong variable is easy to overlook. Not re-tested.
Sources: Ben B. (Oct 2012, the question), Sean H., JP G. (Oct 2012) in softvelocity.clarion.databasedrivers.