Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Connect Post Gres Database using ODBC Connection

Status
Not open for further replies.

089704318

IS-IT--Management
May 22, 2006
12
VN
Hi,

I follow the instruction in thread699-1119777 but I am fail.
Here's my code:
OdbcConnection connection = new OdbcConnection("DSN=PostgreSQL");
connection.Open();
I got error when openning the connection. However, I will not see that error if connecting with Postgres installed in my computer. It only occured when I try to connect to Postgres Server in my intranet.
Can you show me how to solve this.

Thanks




 
probably this server is not configured to allow connections

see postgresql.conf -> listen_addresses
and pg_hba.conf for lines that allow connection from your computer and with what type of method ....
 
Thanks. It is really that. I connected the server now
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top