Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 63BB55A3697 for ; Tue, 15 Nov 2011 13:47:39 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 69314-01 for ; Tue, 15 Nov 2011 17:47:33 +0000 (UTC) X-Greylist: delayed 00:09:39.860471 by SQLgrey-1.8.0-rc2 Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 534AC5A3696 for ; Tue, 15 Nov 2011 13:47:33 -0400 (AST) Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RQMx9-000171-TF for pgsql-odbc@postgresql.org; Tue, 15 Nov 2011 17:37:52 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RQMww-0005lj-P3 for pgsql-odbc@postgresql.org; Tue, 15 Nov 2011 09:37:34 -0800 Date: Tue, 15 Nov 2011 09:37:34 -0800 (PST) From: BGoebel To: pgsql-odbc@postgresql.org Message-ID: <1321378654770-4995095.post@n5.nabble.com> In-Reply-To: References: Subject: Re: enabling psqlODBC logs MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.778 tagged_above=-10 required=5 tests=BAYES_00=-1.9, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201111/30 X-Sequence-Number: 10748 Hi Try to add "debug=1" or "commlog=1" to the connection string, the string which holds info for port, database to connect and so on. SQLDriverConnect(dbc, NULL, "Driver={PostgreSQL};Server=127.0.0.1;Port=5432;Database=postgres;Uid=postgres;Pwd=mypwd;debug=1;commlog=1;", SQL_NTS, NULL, 0, NULL, SQL_DRIVER_COMPLETE); If you use ODBC.INI you add debug=1 / commlog =1 to the section of your database. The logs created by the driver mylog_*.log / psqlodbc_*.log you find in a temp folder. Use a search tool to find out where exactly they are. hope this helps regards -- View this message in context: http://postgresql.1045698.n5.nabble.com/enabling-psqlODBC-logs-tp4983604p4995095.html Sent from the PostgreSQL - odbc mailing list archive at Nabble.com.