Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 92C549FBAC5 for ; Tue, 6 Mar 2007 12:05:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 31932-02-2 for ; Tue, 6 Mar 2007 12:05:37 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 770399FBA69 for ; Tue, 6 Mar 2007 12:05:36 -0400 (AST) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 91CB6308E6; Tue, 6 Mar 2007 17:05:35 +0100 (MET) From: "Andrus" X-Newsgroups: pgsql.interfaces.odbc Subject: Re: Ii can't connect to postgresql with VFP 8 Date: Tue, 6 Mar 2007 18:04:31 +0200 Organization: Hub.Org Networking Services Lines: 41 Message-ID: References: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Response To: pgsql-odbc@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50 X-Spam-Level: X-Archive-Number: 200703/62 X-Sequence-Number: 8740 Use SQLSTRINGCONNECT([Driver=PostgreSQL Unicode;Host=127.0.0.1;Database=persoane;User=postgres;Password=123456]) ""ionut ichim"" 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 >