Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 993969FB425 for ; Fri, 2 Mar 2007 17:01:06 -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 24890-06-2 for ; Fri, 2 Mar 2007 17:00:54 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from FS.denninger.net (wsip-70-169-168-7.pn.at.cox.net [70.169.168.7]) by postgresql.org (Postfix) with ESMTP id 4238D9FB44A for ; Fri, 2 Mar 2007 17:00:56 -0400 (AST) Received: from karlsdesktop (localhost [127.0.0.1]) by FS.denninger.net (8.13.8/8.13.1) with SMTP id l22L0tjC086103 for ; Fri, 2 Mar 2007 15:00:55 -0600 (CST) (envelope-from karl@denninger.net) Received: from karlsdesktop [192.168.1.13] by Spamblock-sys (LOCAL); Fri Mar 2 15:00:55 2007 From: "Karl Denninger" To: "'Richard Broersma Jr'" , "'George Weaver'" , Subject: Re: ODBC problem with Microsoft Word and Excel Date: Fri, 2 Mar 2007 15:00:54 -0600 Message-ID: <00c701c75d0d$de412dc0$0d01a8c0@karlsdesktop> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6822 Importance: Normal Thread-Index: AcddCxAh0c+GmnHuQLKM8u6mZ9jnXAAATN3w In-Reply-To: <723208.68793.qm@web31808.mail.mud.yahoo.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-SPAMBLOCK-MATCH: Matched [@yahoo.com+], message ok X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.636 tagged_above=0 required=5 tests=AWL, BAYES_50, FORGED_RCVD_HELO, URI_NOVOWEL X-Spam-Level: X-Archive-Number: 200703/17 X-Sequence-Number: 8695 Correct. The part I don't understand is that I enabled logging and it appears to = be returning the table list! Immediately after I attempt the connect from either EXCEL or WORD I pulled the logfiles. The ODBC logfile contains the following: conn=3D02B03A90, PGAPI_DriverConnect( in)=3D'DSN=3DPostgreSQL30W;', fDriverCompletion=3D3 DSN info: DSN=3D'PostgreSQL30W',server=3D'genesis.denninger.net',port=3D'5432',dbas= e=3D' test',user=3D'karl',passwd=3D'xxxxx' onlyread=3D'0',protocol=3D'7.4',showoid=3D'0',fakeoidindex=3D'0',showsyst= able=3D '0' conn_settings=3D'',conn_encoding=3D'OTHER' translation_dll=3D'',translation_option=3D'' Global Options: Version=3D'08.02.0200', fetch=3D100, socket=3D4096, unknown_sizes=3D0, m ax_varchar_size=3D254, max_longvarchar_size=3D8190 disable_optimizer=3D1, ksqo=3D1, unique_index=3D1, use_declarefetch=3D0 text_as_longvarchar=3D1, unknowns_as_longvarchar=3D0, bools_as_char=3D 1 NAMEDATALEN=3D64 extra_systable_prefixes=3D'dd_;', conn_settings=3D'' conn_encoding=3D' OTHER' [ PostgreSQL version string =3D '8.2.3' ] [ PostgreSQL version number =3D '8.2' ] conn=3D02B03A90, query=3D'select oid, typbasetype from pg_type where = typname =3D 'lo'' [ fetched 0 rows ] [ Large Object oid =3D -999 ] [ Client encoding =3D 'UTF8' (code =3D 6) ] conn=3D02B03A90, PGAPI_DriverConnect(out)=3D'DSN=3DPostgreSQL30W;DATABASE=3Dtest;SERVER =3Dgenesis.denninger.net;PORT=3D5432;UID=3Dkarl;PWD=3Dxxxxxxxxxxx;SSLmode= =3Ddisable;Re adOn ly=3D0;Protocol=3D7.4-1;FakeOidIndex=3D0;ShowOidColumn=3D0;RowVersioning=3D= 0;ShowSyste mTab les=3D0;ConnSettings=3D;Fetch=3D100;Socket=3D4096;UnknownSizes=3D0;MaxVar= charSize=3D254; MaxL ongVarcharSize=3D8190;Debug=3D1;CommLog=3D1;Optimizer=3D1;Ksqo=3D1;UseDec= lareFetch=3D0;T extA sLongVarchar=3D1;UnknownsAsLongVarchar=3D0;BoolsAsChar=3D1;Parse=3D0;Canc= elAsFreeStm t=3D0; ExtraSysTablePrefixes=3Ddd_;;LFConversion=3D1;UpdatableCursors=3D1;Disall= owPrematu re=3D0 ;TrueIsMinus1=3D0;BI=3D0;ByteaAsLongVarBinary=3D0;UseServerSidePrepare=3D= 0;LowerCase Iden tifier=3D0;XaOpt=3D1' conn=3D02B03A90, query=3D'select relname, nspname, relkind from pg_catalog.pg_class c, pg_catalog.pg_namespace n where relkind in ('r', 'v') and nspname not = in ('pg _catalog', 'information_schema', 'pg_toast', 'pg_temp_1') and n.oid =3D relnamespa ce order by nspname, relname' [ fetched 14 rows ] conn=3D02B03A90, PGAPI_Disconnect There are indeed 14 rows (tables), and the debug output says there were = 14 rows fetched! The query is also ok; I ran it by hand on the server, and got the list = of tables cleanly with no diagnostics. What's going on? Same error out of either Excel or Word (mailmerge setup) -- Karl Denninger karl@denninger.net Diving? See http://www.scubaforum.org=20 -----Original Message----- From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Richard Broersma = Jr Sent: Friday, March 02, 2007 2:40 PM To: George Weaver; pgsql-odbc@postgresql.org Subject: Re: [ODBC] ODBC problem with Microsoft Word and Excel > This might help: http://archives.postgresql.org/pgsql-odbc/2004-12/msg00054.php The attached link refers to .udl(s). UDL(s) only work with OLE-DB = drivers not ODBC drivers, correct? In this case the posters is trying to get the ODBC driver to = work correctly. Regards, Richard Broersma Jr. ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org %SPAMBLOCK-SYS: Matched [hub.org+], message ok --=20 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.5/707 - Release Date: 3/1/2007 2:43 PM --=20 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.5/707 - Release Date: 3/1/2007 2:43 PM =20 %SPAMBLOCK-SYS: Matched [@yahoo.com+], message ok