Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 4FE4E9FA2EC for ; Fri, 9 Mar 2007 14:07:57 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 52373-01 for ; Fri, 9 Mar 2007 14:07:49 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from bay0-omc1-s4.bay0.hotmail.com (bay0-omc1-s4.bay0.hotmail.com [65.54.246.76]) by postgresql.org (Postfix) with ESMTP id CDD0D9FB1B9 for ; Fri, 9 Mar 2007 14:07:48 -0400 (AST) Received: from hotmail.com ([65.54.161.36]) by bay0-omc1-s4.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Fri, 9 Mar 2007 10:07:47 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 9 Mar 2007 10:07:47 -0800 Message-ID: Received: from 65.54.161.200 by by106fd.bay106.hotmail.msn.com with HTTP; Fri, 09 Mar 2007 18:07:43 GMT X-Originating-IP: [89.40.132.44] X-Originating-Email: [ionutichim@hotmail.com] X-Sender: ionutichim@hotmail.com In-Reply-To: From: "ionut ichim" To: kobruleht2@hot.ee, pgsql-odbc@postgresql.org, luiz@planit.com.br Subject: Re: I can't connect to postgresql with VFP 8 Date: Fri, 09 Mar 2007 18:07:43 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 09 Mar 2007 18:07:47.0615 (UTC) FILETIME=[D7E4F2F0:01C76275] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.481 tagged_above=0 required=5 tests=AWL, BAYES_50, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, MSGID_FROM_MTA_HEADER, SPF_PASS X-Spam-Level: * X-Archive-Number: 200703/68 X-Sequence-Number: 8746 With your suggestion works,thanks ! Thanks to Luiz K. Matsumura. >From: "Andrus" >To: pgsql-odbc@postgresql.org >Subject: Re: [ODBC] Ii can't connect to postgresql with VFP 8 >Date: Tue, 6 Mar 2007 18:04:31 +0200 > >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 > > > > > >---------------------------(end of broadcast)--------------------------- >TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/