Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 434139FB2A6 for ; Sun, 4 Mar 2007 08:55:33 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 52567-01 for ; Sun, 4 Mar 2007 08:55:24 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from bay0-omc1-s8.bay0.hotmail.com (bay0-omc1-s8.bay0.hotmail.com [65.54.246.80]) by postgresql.org (Postfix) with ESMTP id 7F98B9FA667 for ; Sun, 4 Mar 2007 08:55:29 -0400 (AST) Received: from hotmail.com ([65.54.161.44]) by bay0-omc1-s8.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Sun, 4 Mar 2007 04:55:28 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 4 Mar 2007 04:55:28 -0800 Message-ID: Received: from 65.54.161.200 by by106fd.bay106.hotmail.msn.com with HTTP; Sun, 04 Mar 2007 12:55:27 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: Ii can't connect to postgresql with VFP 8 Date: Sun, 04 Mar 2007 12:55:27 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 04 Mar 2007 12:55:28.0118 (UTC) FILETIME=[6237E160:01C75E5C] 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/26 X-Sequence-Number: 8704 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/