pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Ii can't connect to postgresql with VFP 8
4+ messages / 3 participants
[nested] [flat]

* Ii can't connect to postgresql with VFP 8
@ 2007-03-04 12:55  ionut ichim <ionutichim@hotmail.com>
  0 siblings, 2 replies; 4+ messages in thread

From: ionut ichim @ 2007-03-04 12:55 UTC (permalink / raw)
  To: pgsql-odbc

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/




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Ii can't connect to postgresql with VFP 8
@ 2007-03-06 16:04  Andrus <kobruleht2@hot.ee>
  parent: ionut ichim <ionutichim@hotmail.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Andrus @ 2007-03-06 16:04 UTC (permalink / raw)
  To: pgsql-odbc

Use

 SQLSTRINGCONNECT([Driver=PostgreSQL 
Unicode;Host=127.0.0.1;Database=persoane;User=postgres;Password=123456])

""ionut ichim"" <ionutichim@hotmail.com> wrote in message 
news:BAY106-F345418F785C1F0A197B558C0850@phx.gbl...
>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/
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>               http://archives.postgresql.org
> 





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Ii can't connect to postgresql with VFP 8
@ 2007-03-08 02:31  Luiz K. Matsumura <luiz@planit.com.br>
  parent: ionut ichim <ionutichim@hotmail.com>
  1 sibling, 1 reply; 4+ messages in thread

From: Luiz K. Matsumura @ 2007-03-08 02:31 UTC (permalink / raw)
  To: ionut ichim <ionutichim@hotmail.com>; +Cc: pgsql-odbc

Try :

lnConn = SQLSTRINGCONNECT([Driver={PostgreSQL 
Unicode};Server=127.0.0.1;Port=5432;Database=persoane;Uid=postgres;Pwd=123456]) 


Hope this helps


ionut ichim wrote:
> 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/
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>               http://archives.postgresql.org
>
>

-- 
Luiz K. Matsumura
Plan IT Tecnologia Informática Ltda.




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Ii can't connect to postgresql with VFP 8
@ 2007-03-08 13:39  ionut ichim <ionutichim@hotmail.com>
  parent: Luiz K. Matsumura <luiz@planit.com.br>
  0 siblings, 0 replies; 4+ messages in thread

From: ionut ichim @ 2007-03-08 13:39 UTC (permalink / raw)
  To: luiz@planit.com.br; pgsql-odbc


ok..i'll try it. Thanks very much!



>From: "Luiz K. Matsumura" <luiz@planit.com.br>
>To: ionut ichim <ionutichim@hotmail.com>
>CC: pgsql-odbc@postgresql.org
>Subject: Re: [ODBC] Ii can't connect to postgresql with VFP 8
>Date: Wed, 07 Mar 2007 23:31:00 -0300
>
>Try :
>
>lnConn = SQLSTRINGCONNECT([Driver={PostgreSQL 
>Unicode};Server=127.0.0.1;Port=5432;Database=persoane;Uid=postgres;Pwd=123456])
>
>
>Hope this helps
>
>
>ionut ichim wrote:
>>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/
>>
>>
>>---------------------------(end of broadcast)---------------------------
>>TIP 4: Have you searched our list archives?
>>
>>               http://archives.postgresql.org
>>
>>
>
>--
>Luiz K. Matsumura
>Plan IT Tecnologia Informática Ltda.
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 2: Don't 'kill -9' the postmaster

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




^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2007-03-08 13:39 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-03-04 12:55 Ii can't connect to postgresql with VFP 8 ionut ichim <ionutichim@hotmail.com>
2007-03-06 16:04 ` Andrus <kobruleht2@hot.ee>
2007-03-08 02:31 ` Luiz K. Matsumura <luiz@planit.com.br>
2007-03-08 13:39   ` ionut ichim <ionutichim@hotmail.com>

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