pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Minal <minalac@yes2etl.com>
To: pgsql-odbc@postgresql.org
Subject: pgsql-odbc
Date: Wed, 13 Jul 2005 14:26:14 +0530
Message-ID: <42D4D72E.4030900@yes2etl.com> (raw)

This is my code which I have included to connect to postgresql in SUSE 
linux from windows machine.

Dim MyDB As New ADODB.Connection
Dim Rc As New ADODB.Recordset
Private Sub Command1_Click()

With MyDB
  .CursorLocation = adUseClient
  .Open "Provider='PostgreSQL';Database='test';host='10.1.2.86';"
 
End With

End Sub

I am getting the following error:
"Could not connect to server:connection refused(0x0000274D/10061) is the 
server running on the host"" and accepting TCP/IP on port 5432"

I  have modified pg_hba.conf  on the linux server to allow connections 
froms other hosts also.
Just dont know what to do??

Minal



view thread (4+ messages)  latest in thread

Message-ID: <42D4D72E.4030900@yes2etl.com>
Permalink:  ../42D4D72E.4030900@yes2etl.com/
Also on:    postgresql.org/message-id/42D4D72E.4030900@yes2etl.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: minalac@yes2etl.com
  Subject: Re: pgsql-odbc
  In-Reply-To: <42D4D72E.4030900@yes2etl.com>
  References: <42D4D72E.4030900@yes2etl.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox