pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ionut ichim <ionutichim@hotmail.com>
To: pgsql-odbc@postgresql.org
Subject: Ii can't connect to postgresql with VFP 8
Date: Sun, 04 Mar 2007 12:55:27 +0000
Message-ID: <BAY106-F345418F785C1F0A197B558C0850@phx.gbl> (raw)

I want to try postgresql with VFP 8 sp1, but i can't connect to new created 
database.
I've installed pq + odbc driver. With pgAdminIII,I can connect to my 
database using  password '123456' and default user 'postgres',default port 
5432 ,but with VFP i can't.Connection is a local one
This is the code I use (it always gives me 'Couldn't connect to the 
database!') :


Local lnConn
lnConn = 
SQLSTRINGCONNECT([Driver={PostgreSQL};Server=127.0.0.1;Port=5432;Database=persoane;Uid=postgres;Pwd=123456])
If lnConn < 0
  MessageBox( "Couldn't connect to the database !" )
ELSE
  MessageBox( "OK !" )
  =SQLDisconnect( lnConn )

Endif

Thanks !

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




view thread (4+ messages)  latest in thread

Message-ID: <BAY106-F345418F785C1F0A197B558C0850@phx.gbl>
Permalink:  ../BAY106-F345418F785C1F0A197B558C0850@phx.gbl/
Also on:    postgresql.org/message-id/BAY106-F345418F785C1F0A197B558C0850@phx.gbl

 · 

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: ionutichim@hotmail.com
  Subject: Re: Ii can't connect to postgresql with VFP 8
  In-Reply-To: <BAY106-F345418F785C1F0A197B558C0850@phx.gbl>
  References: <BAY106-F345418F785C1F0A197B558C0850@phx.gbl>

* 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