pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Huttleston Jr <dhjr@hddesign.com>
To: Kisala Muhavi <ayuma@email.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Database connectivity
Date: Mon, 16 Oct 2000 09:00:32 -0500
Message-ID: <200010161400.JAA15974@proxy.hddesign.com> (raw)
In-Reply-To: <381172629.971691405874.JavaMail.root@web586-ec.mail.com>

Hey Kisala,

  To get a windows client and a postgres linix server talking you need
several things done on the server and the client.

On the server:

1) pg 7.02 needs to have been compiled with ODBC support on
2) pg 7.02 needs to be running with the -i option to allow
    remote connections
3) pg_hba.conf needs a line appended to allow your client's IP address
    For example:
host	all	10.0.0.2	255.255.255.0	trust
(change 10.0.0.2 and 255.255.255.0 to match the client's IP and netmask
 you wish to connect to postgres on your server.)

On each client:
1) install the Windows ODBC driver on your client
2) create a ODBC data source using ODBC32 on the client.  Make sure
  you turn *ON* the declare/fetch option when setting the properties.
3) Test connection using MS Access.  For example, create an ODBC link
  and try a query.

  I think you will get better help with any problems using Access initially.
There is not much talk of VB on these lists, but lots of Postgres-via-Access.

Good Luck,
	Dave Huttleston Jr.

On Mon, 16 Oct 2000 06:16:45 -0400 (EDT), you wrote:
> hi,
> I have postgres installed on my linux apache server. Im using Visual basic 6
> and MS Access as my front-end tools. Im unnable to connect to postgresql
> database, despite that ive the latest ODBC drivers of postgresql installed
> on my windows machine. Please advice me on how to connect to postgres from
> windows environment. Im doing all this on LAN.
> Thanks.
> bonny
> 
> 
> -----------------------------------------------
> FREE! The World's Best Email Address @email.com
> Reserve your name now at http://www.email.com
> 
> 



view thread (2+ messages)

Message-ID: <200010161400.JAA15974@proxy.hddesign.com>
Permalink:  ../200010161400.JAA15974@proxy.hddesign.com/
Also on:    postgresql.org/message-id/200010161400.JAA15974@proxy.hddesign.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-admin@postgresql.org
  Cc: dhjr@hddesign.com, ayuma@email.com
  Subject: Re: Database connectivity
  In-Reply-To: <200010161400.JAA15974@proxy.hddesign.com>
  References: <381172629.971691405874.JavaMail.root@web586-ec.mail.com> <200010161400.JAA15974@proxy.hddesign.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