Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 4F8FC9FB2C9 for ; Sun, 4 Mar 2007 08:09:27 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 81398-03 for ; Sun, 4 Mar 2007 08:09:19 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from bay0-omc2-s3.bay0.hotmail.com (bay0-omc2-s3.bay0.hotmail.com [65.54.246.139]) by postgresql.org (Postfix) with ESMTP id 9F32A9FB2B8 for ; Sun, 4 Mar 2007 08:09:23 -0400 (AST) Received: from hotmail.com ([65.54.161.14]) by bay0-omc2-s3.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Sun, 4 Mar 2007 04:09:22 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 4 Mar 2007 04:09:21 -0800 Message-ID: Received: from 65.54.161.200 by by106fd.bay106.hotmail.msn.com with HTTP; Sun, 04 Mar 2007 12:09:18 GMT X-Originating-IP: [80.97.181.192] X-Originating-Email: [ionutichim@hotmail.com] X-Sender: ionutichim@hotmail.com From: "ionut ichim" To: pgsql-odbc@postgresql.org Subject: i can't connect to postgresql with VFP 8 Date: Sun, 04 Mar 2007 12:09:18 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 04 Mar 2007 12:09:21.0850 (UTC) FILETIME=[F164E1A0:01C75E55] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.908 tagged_above=0 required=5 tests=BAYES_50, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, MSGID_FROM_MTA_HEADER, SPF_PASS X-Spam-Level: * X-Archive-Number: 200703/63 X-Sequence-Number: 8741 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 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 ! _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/