X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 15D1FD1B455 for ; Fri, 16 Jan 2004 21:11:39 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 98306-01 for ; Fri, 16 Jan 2004 17:11:09 -0400 (AST) Received: from smtp-out.bhp.t-online.de (smtp-out.bhp.t-online.de [195.145.119.39]) by svr1.postgresql.org (Postfix) with ESMTP id 0AC01D1B4AE for ; Fri, 16 Jan 2004 17:11:07 -0400 (AST) Received: from maria.bhp.t-online.de (maria.ada.t-online.de [172.30.8.41]) by smtp-out.bhp.t-online.de (iPlanet Messaging Server 5.2 HotFix 1.17 (built Jun 23 2003)) with SMTP id <0HRL009P7PGAZF@smtp-out.bhp.t-online.de> for pgsql-odbc@postgresql.org; Fri, 16 Jan 2004 22:09:47 +0100 (MET) Received: from p3EE02262.dip.t-dialin.net ([62.224.34.98:33874]) by maria.bhp.t-online.de (SmtpProxy); Fri, 16 Jan 2004 22:09:46 +0100 (MET) Date: Fri, 16 Jan 2004 22:08:01 +0100 From: Robert Roebling Subject: Newbie unable to connect through iODBC To: PostgreSQL-ODBC-List Message-id: <1074287280.8960.29.camel@berlin.roebling.de> MIME-version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Content-type: text/plain Content-transfer-encoding: 7BIT X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/40 X-Sequence-Number: 3669 Hello, I am not sure if this is the right place to ask, but I didn't find any better place. I am trying to connect to a simple test PostgreSQL 7.3.4 database through iODBC (or any ODBC, actually). I am using SuSE 9.0 in a mostly unmodified way - it ships with PostgreSQL, psqlodbc.so and iODBC or UnixODBC alternatively. I created a test database "test2" as Unix and PostgreSQL user "robert". I am able to connect to the database with "psql test2" and also using pgaccess (after enable TCP connections). But whatever I try with ODBC, I don't get through. I think it is an access or privilege thing. I changed my pg_hba.conf to allow any access: local all all trust host all all 127.0.0.1 255.255.255.255 trust local all all ident sameuser My .odbc.ini looks like this: [ODBC Data Sources] test2 = PostgreSQL [test2] Driver = /usr/lib/psqlodbc.so Description = Test for Test2 DSN = test2 Database = test2 Port = 5432 ServerType = Postgres Protocol = 7.3 Username = robert Password = robert ReadOnly = No Trace = 1 [ODBC] Trace = 1 TraceAutoStop = 0 TraceFile = sql.log When running testodbc from the iODBC distribution (I have tried several versions, currently the latest iODBC from their webpage). I get this in the log file's end: iodbctest 00004000 ENTER SQLDriverConnect SQLHDBC 0x804b5f0 SQLPOINTER 0x0 SQLCHAR * 0xbffff190 | DSN=test2;UID=robert;PWD=robert | SQLSMALLINT -3 (SQL_NTS) SQLCHAR * 0xbffff210 SQLSMALLINT 257 SQLSMALLINT * 0xbfffef5a SQLUSMALLINT 1 (SQL_DRIVER_COMPLETE) saying that in odbctest.c, the call to SQLDriverConnect( .. ) doesn't return SQL_SUCCESS. Can anyone give me a clue? Thanks in advance, Robert