Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

PostgresSQL connect string

 
   Database Help (Home) -> Visual Basic -> DAO RSS
Next:  Test for empty field in a DAO Recordset  
Author Message
John S

External


Since: Feb 16, 2005
Posts: 7



(Msg. 1) Posted: Thu Dec 13, 2007 9:07 pm
Post subject: PostgresSQL connect string
Archived from groups: microsoft>public>vb>database>dao (more info?)

Hi

does any one out there know how to build the Postgres SQL connect string for
ADO connection?

thanks any one who can help.

--
George @ Lexington

 >> Stay informed about: PostgresSQL connect string 
Back to top
Login to vote
Ralph

External


Since: Jan 28, 2008
Posts: 34



(Msg. 2) Posted: Fri Dec 14, 2007 6:57 am
Post subject: Re: PostgresSQL connect string [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"John S" wrote in message

> Hi
>
> does any one out there know how to build the Postgres SQL connect string
for
> ADO connection?
>
> thanks any one who can help.
>

http://www.connectionstrings.com/default.aspx?carrier=postgresql

Google is your friend.

-ralph

 >> Stay informed about: PostgresSQL connect string 
Back to top
Login to vote
Fishing Guy

External


Since: Dec 18, 2007
Posts: 2



(Msg. 3) Posted: Tue Dec 18, 2007 9:09 pm
Post subject: Re: PostgresSQL connect string [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

thank you for you site. however, I try the ODBC connect string. I got this
error:


FATAL: no pg_hba.conf entry for host "192.168.0.5", user "postgres",
database "test", SSL off

thanks for your help

--
FishingGuy.RemoveThis@discussions.microsoft


"Ralph" wrote:

>
> "John S" wrote in message
>
> > Hi
> >
> > does any one out there know how to build the Postgres SQL connect string
> for
> > ADO connection?
> >
> > thanks any one who can help.
> >
>
> http://www.connectionstrings.com/default.aspx?carrier=postgresql
>
> Google is your friend.
>
> -ralph
>
>
>
 >> Stay informed about: PostgresSQL connect string 
Back to top
Login to vote
hendra.uzia

External


Since: Jun 09, 2008
Posts: 1



(Msg. 4) Posted: Mon Jun 09, 2008 3:17 am
Post subject: Re: PostgresSQL connect string [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Fishing Guy,

This reply assumes you know the location of the pg_hba.conf file.

You can change the pg_hba.conf entries for host connection to your subnet
network, such as your IP addres is 192.168.1.100, then the IP address field
in the pg_hba.conf for host IPv4 connection should be entered to
192.168.1.0/24. The 24 means for the first 24 bit stands for your subnet
network, that is your 192.168.1, then restart your postgresql services.

If it still fails, check the method of it's connection, if it's ident
sameuser, change it to md5 for an easier connection from your application
without having to had the same username logged in, then restart your
postgresql connection.

If it still fails, check for your postgresql.conf file, search for
#listen_addresses='localhost'; (or similar), if there is a "#" in front of
it, delete it to uncomment it. Then change the 'localhost' for the allowed IP
to connect to your postgresql server separated with comma, or if you'd like
an "easier" way (not recommended for production server), change the
'localhost' to '*' to allow all connection to you postgresql server.

Hope it helps you.


-- hendra.uzia --

"Fishing Guy" wrote:

> thank you for you site. however, I try the ODBC connect string. I got this
> error:
>
>
> FATAL: no pg_hba.conf entry for host "192.168.0.5", user "postgres",
> database "test", SSL off
>
> thanks for your help
>
> --
> FishingGuy.DeleteThis@discussions.microsoft
>
>
> "Ralph" wrote:
>
> >
> > "John S" wrote in message
> >
> > > Hi
> > >
> > > does any one out there know how to build the Postgres SQL connect string
> > for
> > > ADO connection?
> > >
> > > thanks any one who can help.
> > >
> >
> > http://www.connectionstrings.com/default.aspx?carrier=postgresql
> >
> > Google is your friend.
> >
> > -ralph
> >
> >
> >
 >> Stay informed about: PostgresSQL connect string 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
PostgresSQL connection error. - I use the connect string format from this site: http://www.connectionstrings.com/default.aspx?carrier=postgresql I am using VB6 with ADO. when I try to connect I got this error: FATAL: no pg_hba.conf entry for host "192.168.0.5", user &quo...

paradox connect - What is the connect string to connect to paradox.dsn (odbc)?

Trying to connect to MySQL db with DAO using ODBC - I've installed MySQL (version 5.0.51a) and am trying to learn to use it in a program written in Visual Basic 6. The VB6 program has been using both ADO and DAO to manipulate data in an MS Access MDB file. Using the examples shown here:..

Connect Data Control to Access 97 secured DB via MDW file .. - Re VB 6.0 & Access 97 I am using the MS Data Control on a form which I need to refresh each time the user enters criteria. The DB is secured via an MDW file. Could someone please provide an example, using DAO, with a solution to connect the Data..

DAO 3.6 record locking - Hi, Is it possible to programmatically lock a single record in a VB application using DAO 3.6? I would like to lock users' records when they log on to the app. Later I can check if a user's record is locked to see if they are logged in or not. (I....
   Database Help (Home) -> Visual Basic -> DAO All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]