Welcome! Log In Create A New Profile

Advanced

Cannot Connect To PostgreSQL

Cannot Connect To PostgreSQL
March 27, 2024 09:56PM
Hi All

I cannot connect to a pg database.

The test connection in the ide works.

My connection is described as follows:

HDescribeConnection("MyPGConnection","myid","mypassword","PostgreSQL35W","mydatabase",hNativeAccessPostgreSQL,hOReadWrite)

When I run the project the connection fails.

Any ideas welcome.

Cheers
Andre
Argus
Re: Cannot Connect To PostgreSQL
March 28, 2024 09:34PM
Without the erreur message/code, it's going to be difficult to help, but I'm going to go out on a limb and assume that it's the usual error 27...

If it's the case, it's because your postgres native access dll is not copied in your test/exe direcotry with the other windev dlls
Re: Cannot Connect To PostgreSQL
April 01, 2024 10:12AM
Thank you - I did have the postgres native access dll in the test/exe and on the sandbox exe etc but to no avail - no connection can be made.

Will see if an error message can be found and helps.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: