X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 254249DC81D for ; Mon, 6 Mar 2006 02:51:10 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 20586-10 for ; Mon, 6 Mar 2006 02:51:09 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from iwsbsrv1.InterWorksok.com (mail.interworksok.com [205.162.236.173]) by postgresql.org (Postfix) with ESMTP id 126149DC800 for ; Mon, 6 Mar 2006 02:51:07 -0400 (AST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: Problem connecting MS SQLServer & Postgresql using psqlODBC driver Date: Mon, 6 Mar 2006 00:51:02 -0600 Message-ID: <22CFEEFF5C5D60429D6B0572DB26625928F4FF@iwsbsrv1.InterWorksok.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ODBC] Problem connecting MS SQLServer & Postgresql using psqlODBC driver thread-index: AcZA5WwfJC8kGnAxRlqjYhd1P/RWxwABHR1w From: "Daniel Holm" To: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.072 required=5 tests=[AWL=0.072] X-Spam-Score: 0.072 X-Spam-Level: X-Archive-Number: 200603/15 X-Sequence-Number: 7301 Ram, Are the machines on a local LAN together? Or, might there be some sort = of firewall between them. Also, did you modify your pg_hba.conf file (in postgres /data/ = directory) to allow access to your server from outside of the localhost. http://www.postgresql.org/docs/7.4/static/client-authentication.html#AUTH= -PG-HBA-CONF might prove useful. Regards, Daniel Holm ________________________________________ From: pgsql-odbc-owner@postgresql.org = [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Ram R.K. Mohan Sent: Monday, March 06, 2006 12:16 AM To: pgsql-odbc@postgresql.org Subject: [ODBC] Problem connecting MS SQLServer & Postgresql using = psqlODBC driver Hello, =A0 I'm unable=A0to connect from=A0DTS=A0designer=A0(MS = SQLServer2000/WindowsXP Professional) to PostgreSQL (RHEL-4) using = psqlODBC driver. I=A0setup a DSN successfully in the Windows machine. = (but did not change any of the default values of advanced options)=20 =A0 While creating a connection in DTS designer, the installed psqlODBC = driver is listed, and it=A0pops up a window, where I=A0typed in=A0the ip = address of the linux box and the postgres username and password. =A0 Would you please help me out? The details are as follows: =A0 1) ODBC driver version - psqlodbc-08_01_0200 (downloaded from = http://www.postgresql.org/ftp/odbc/versions/msi/ ) =A0 2) PostgreSQL database version - 7.4.6-1 (this is=A0the rpm name - = running on RHEL-4) =A0 3) Error message - =A0 "Package error : HResult of 0x80004005 (-2147467259) returned Unexpected error occured. An error result was returned without an error = message."=20 =A0 4-a) Error log file (mylog_1532.log) - =A0 " [3428]globals.extra_systable_prefixes =3D 'dd_;' [3428]aszKey=3D'DSN', value=3D'PostgreSQL' [3428]copyAttributes: = DSN=3D'PostgreSQL',server=3D'',dbase=3D'',user=3D'',passwd=3D'xxxxx',port= =3D'',onlyread=3D'',protocol=3D'',conn_settings=3D'',disallow_premature=3D= -1)=20 [3428]globals.extra_systable_prefixes =3D 'dd_;' " =A0 4-b) Error log file (psqlodbc_1544.log) -=20 The following error appears many times in the log file: =A0 " func=3DPGAPI_DriverConnect, desc=3D'Error from CC_Connect', = errnum=3D101, errmsg=3D'Could not connect to the server' "=20 =A0 I guess, each one corresponds to each of my (unsuccessful) connection = attempts?=A0 =A0 Thanks in advance. Ram Mohan =A0