Can you check server log for the exact error?If you are running windows server, this is in the Application portion of the event log.Maybe your pg_hba.conf is improperly set up.If there is no error there, try connecting via shell using similar login parameters and see what happens.
Merlin
From: "Zlatko Matić" [mailto:zlatko.matic1@sb.t-com.hr] Sent: Thursday, October 20, 2005 3:34 PM To: Merlin Moncure Cc: pgsql-odbc@postgresql.org Subject: Re: [ODBC] versions of oDBC driver Importance: High
Hello.
The error is error 3151: "ODBC--connection to '{PostgreSQL}Localhost' failed".
I have a form with text boxes for entering Database name, IP adress, username, password etc. When a user push the confirmation button, a function "ConnectionToServer" is executed to: a) create connection string, b) to check whether connection string works, c) to call functions for relinking linked tables and adjusting connection string in pass-through queries. The code is following: