X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F073552BAF for ; Wed, 13 Jul 2005 09:52:04 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 21143-04 for ; Wed, 13 Jul 2005 12:51:57 +0000 (GMT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by svr1.postgresql.org (Postfix) with ESMTP id E704852A9C for ; Wed, 13 Jul 2005 09:51:56 -0300 (ADT) Received: from jfradkin ([66.15.127.235]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IJK00IARH2NTR40@vms046.mailsrvcs.net> for pgsql-odbc@postgresql.org; Wed, 13 Jul 2005 07:51:59 -0500 (CDT) Date: Wed, 13 Jul 2005 08:52:59 -0400 From: "Joel Fradkin" Subject: Re: pgsql-odbc In-reply-to: <42D4D72E.4030900@yes2etl.com> To: "'Minal'" , Message-id: <001401c587a9$ccabc880$797ba8c0@jfradkin> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: quoted-printable X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.82 tagged_above=0 required=5 tests=AWL, MSGID_DOLLARS X-Spam-Level: ** X-Archive-Number: 200507/32 X-Sequence-Number: 5498 In the conf file there is a setting to allow tcpip=20 listen_addresses =3D '*' # what IP interface(s) to listen on;=20 # defaults to localhost, '*' =3D any port =3D 5432 max_connections =3D 100 as well as the hba settings you mentioned host all all 192.168.123.121 255.255.255.0 = trust you might try using pgadminIII to confirm you can connect. My connect looks like=20 Session("StringConn") =3D "DRIVER=3D{PostgreSQL};DATABASE=3Dwazuni;SERVER=3D192.168.123.121;PORT=3D= 5432;UID=3Dpo stgres;PWD=3D;ReadOnly=3D0;Protocol=3D6.4;FakeOidIndex=3D0;ShowOidColumn=3D= 0;RowVersio ning=3D0;ShowSystemTables=3D0;ConnSettings=3D;Fetch=3D100;Socket=3D4096;U= nknownSizes=3D0 ;MaxVarcharSize=3D254;MaxLongVarcharSize=3D8190;Debug=3D0;CommLog=3D0;Opt= imizer=3D1;Ks qo=3D1;UseDeclareFetch=3D0;TextAsLongVarchar=3D1;UnknownsAsLongVarchar=3D= 0;BoolsAsCh ar=3D1;Parse=3D0;CancelAsFreeStmt=3D0;ExtraSysTablePrefixes=3Ddd_;LFConve= rsion=3D1;Upd atableCursors=3D1;DisallowPremature=3D0;TrueIsMinus1=3D0;BI=3D0;ByteaAsLo= ngVarBinary =3D0;UseServerSidePrepare=3D0" Joel Fradkin =20 Wazagua, Inc. 2520 Trailmate Dr Sarasota, Florida 34243 Tel. 941-753-7111 ext 305 =20 jfradkin@wazagua.com www.wazagua.com Powered by Wazagua Providing you with the latest Web-based technology & advanced tools. C 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc This email message is for the use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized = review, use, disclosure or distribution is prohibited. If you are not the = intended recipient, please contact the sender by reply email and delete and = destroy all copies of the original message, including attachments. =20 =20 -----Original Message----- From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Minal Sent: Wednesday, July 13, 2005 4:56 AM To: pgsql-odbc@postgresql.org Subject: [ODBC] pgsql-odbc This is my code which I have included to connect to postgresql in SUSE=20 linux from windows machine. Dim MyDB As New ADODB.Connection Dim Rc As New ADODB.Recordset Private Sub Command1_Click() With MyDB .CursorLocation =3D adUseClient .Open "Provider=3D'PostgreSQL';Database=3D'test';host=3D'10.1.2.86';" =20 End With End Sub I am getting the following error: "Could not connect to server:connection refused(0x0000274D/10061) is the = server running on the host"" and accepting TCP/IP on port 5432" I have modified pg_hba.conf on the linux server to allow connections=20 froms other hosts also. Just dont know what to do?? Minal ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster