From karl@denninger.net Fri Mar 2 19:40:08 2007 Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 693A09FB2DE for ; Fri, 2 Mar 2007 15:40:08 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 72003-10 for ; Fri, 2 Mar 2007 15:40:01 -0400 (AST) X-Greylist: delayed 00:11:18.871955 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 EA5789FB308 for ; Fri, 2 Mar 2007 15:40:02 -0400 (AST) Received: from karlsdesktop (localhost [127.0.0.1]) by FS.denninger.net (8.13.8/8.13.1) with SMTP id l22JShSN084316 for ; Fri, 2 Mar 2007 13:28:43 -0600 (CST) (envelope-from karl@denninger.net) Received: from karlsdesktop [192.168.1.13] by Spamblock-sys (LOCAL); Fri Mar 2 13:28:43 2007 From: "Karl Denninger" To: Subject: ODBC problem with Microsoft Word and Excel Date: Fri, 2 Mar 2007 13:28:42 -0600 Message-ID: <00bc01c75d00$fcbd5c40$0d01a8c0@karlsdesktop> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00BD_01C75CCE.B222EC40" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6822 Importance: Normal Thread-Index: AcddAPygdL8vZJUdRduIhl9GyJb8YA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-SPAMBLOCK-MATCH: Matched [@postgresql.org+], message ok X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.252 tagged_above=0 required=5 tests=BAYES_50, FORGED_RCVD_HELO, HTML_MESSAGE, HTML_TEXT_AFTER_BODY X-Spam-Level: X-Archive-Number: 200703/14 X-Sequence-Number: 8692 This is a multi-part message in MIME format. ------=_NextPart_000_00BD_01C75CCE.B222EC40 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: quoted-printable I=92ve loaded the most recent ODBC driver off the Postgresql FTP site. =20 The DBMS is functioning, has other applications (libpq, etc) operating perfectly, and the =93Test=94 functionality from the =93Data Sources=94 = setup shows that I can connect to the database desired when I declare the = connection. =20 However, when I attempt to go into either WORD (to use it as a mail = merge source) or EXCEL (just for grins to pull data from there) I connect to = =93ODBC DSN=94, click =93PostgreSQL30W=94 (the driver that was set up in the = Data Sources panel), I immediately get =93Unable to get list of tables from the data source=94. =20 What=92s going on?! =20 -- Karl Denninger HYPERLINK = "mailto:karl@denninger.net"karl@denninger.net Diving? See HYPERLINK = "http://www.scubaforum.org"http://www.scubaforum.org=20 =20 --=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 ------=_NextPart_000_00BD_01C75CCE.B222EC40 Content-Type: text/html; charset="windows-1250" Content-Transfer-Encoding: quoted-printable

I=92ve loaded the most recent ODBC driver off the Postgresql FTP site.

 

The DBMS is functioning, has other applications = (libpq, etc) operating perfectly, and the =93Test=94 functionality from the =93Data Sources=94 setup shows that I can connect to the database desired when I declare the connection.

 

However, when I attempt to go into either WORD (to = use it as a mail merge source) or EXCEL = (just for grins to pull data from there) I connect to =93ODBC DSN=94, click = =93PostgreSQL30W=94 (the driver that was set up in the Data Sources panel), I immediately = get =93Unable to get list of tables from the data source=94.

 

What=92s going on?!

 

-- Karl Denninger  karl@denninger.net

Diving?  See http://www.scubaforum.org

 


--
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

------=_NextPart_000_00BD_01C75CCE.B222EC40-- %SPAMBLOCK-SYS: Matched [@postgresql.org+], message ok From gweaver@shaw.ca Fri Mar 2 20:28:10 2007 Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 15E9E9FB85D for ; Fri, 2 Mar 2007 16:28:10 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 90326-03 for ; Fri, 2 Mar 2007 16:28:03 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from pd6mo4no.prod.shaw.ca (idcmail-mo2no.cg.shawcable.net [64.59.134.9]) by postgresql.org (Postfix) with ESMTP id 93C469FB865 for ; Fri, 2 Mar 2007 16:28:05 -0400 (AST) Received: from pd5mr6no.prod.shaw.ca (pd5mr6no-svcs.prod.shaw.ca [10.0.144.217]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JEA008KMM6TH560@l-daemon> for pgsql-odbc@postgresql.org; Fri, 02 Mar 2007 13:28:05 -0700 (MST) Received: from pn7ml4no.prod.shaw.ca ([10.0.149.113]) by pd5mr6no.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JEA003ZMM6T5F41@pd5mr6no.prod.shaw.ca> for pgsql-odbc@postgresql.org; Fri, 02 Mar 2007 13:28:05 -0700 (MST) Received: from Dell4500 ([24.77.157.242]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with SMTP id <0JEA00IA1M6PQ4C0@l-daemon> for pgsql-odbc@postgresql.org; Fri, 02 Mar 2007 13:28:05 -0700 (MST) Date: Fri, 02 Mar 2007 14:28:06 -0600 From: George Weaver Subject: Re: ODBC problem with Microsoft Word and Excel To: pgsql-odbc@postgresql.org Message-id: <018001c75d09$49ef0b00$6400a8c0@Dell4500> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Mailer: Microsoft Outlook Express 6.00.2900.3028 Content-type: multipart/alternative; boundary="----=_NextPart_000_017D_01C75CD6.FEADACA0" X-Priority: 3 X-MSMail-priority: Normal References: <00bc01c75d00$fcbd5c40$0d01a8c0@karlsdesktop> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.675 tagged_above=0 required=5 tests=AWL, BAYES_50, FORGED_RCVD_HELO, HTML_MESSAGE, RCVD_IN_BL_SPAMCOP_NET, SPF_PASS X-Spam-Level: * X-Archive-Number: 200703/15 X-Sequence-Number: 8693 This is a multi-part message in MIME format. ------=_NextPart_000_017D_01C75CD6.FEADACA0 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: quoted-printable Karl Denninger found that: > when I attempt to go into either WORD (to use it as a mail merge = source) or EXCEL (just for grins to pull data from there) I >connect to = =93ODBC DSN=94, click =93PostgreSQL30W=94 (the driver that was set up in = the Data Sources panel), I immediately get >=93Unable to get list of = tables from the data source=94. This might help: = http://archives.postgresql.org/pgsql-odbc/2004-12/msg00054.php Regards, George ------=_NextPart_000_017D_01C75CD6.FEADACA0 Content-Type: text/html; charset="windows-1250" Content-Transfer-Encoding: quoted-printable
Karl Denninger found that:
 
> when I attempt to go into either = WORD (to use=20 it as a mail merge source) or EXCEL (just for grins to pull data from = there) I=20 >connect to =93ODBC DSN=94, click =93PostgreSQL30W=94 (the driver = that was set up in=20 the Data Sources panel), I immediately get >=93Unable to get list of = tables=20 from the data source=94.

This might help: h= ttp://archives.postgresql.org/pgsql-odbc/2004-12/msg00054.php
<= /DIV>
 
Regards,
George
 
------=_NextPart_000_017D_01C75CD6.FEADACA0-- From rabroersma@yahoo.com Fri Mar 2 20:39:45 2007 Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 76A4B9FB3A4 for ; Fri, 2 Mar 2007 16:39:45 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 67957-03 for ; Fri, 2 Mar 2007 16:39:32 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from web31808.mail.mud.yahoo.com (web31808.mail.mud.yahoo.com [68.142.207.71]) by postgresql.org (Postfix) with SMTP id AE0439FB35A for ; Fri, 2 Mar 2007 16:39:31 -0400 (AST) Received: (qmail 69019 invoked by uid 60001); 2 Mar 2007 20:39:30 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=CIjSxcyG9ZCADh34syoc4HZTaea1yPLh5oFvmTmGnn72Xnr0BwgvI1Hl7SSjKgk8jZ7EBGAIKguETsKFgDr1BJOk8xxuROzanhHss+ihxcyQrigDZC6DOtpmXy5qqIdejUCX1dr1tDGfvH+s0WwRs3qXtR04SdI8DwckpcOLQ7g=; X-YMail-OSG: Jhwh4c4VM1kfg2szzv8KHvUY4WBwlQjmX2AfHSO3H3_aDNXRddJVTkgZeUexKX1LXl_Y6E755ScwcSNVkjvYYvrC5dhNLrg1fC5Genpf2jJtgr4ixyGTOOaueZjH13uvySxSKF3dvqsQpno2vXBEaMpPEIBzO3DLpcwP9Le. Received: from [63.203.180.122] by web31808.mail.mud.yahoo.com via HTTP; Fri, 02 Mar 2007 12:39:30 PST Date: Fri, 2 Mar 2007 12:39:30 -0800 (PST) From: Richard Broersma Jr Subject: Re: ODBC problem with Microsoft Word and Excel To: George Weaver , pgsql-odbc@postgresql.org In-Reply-To: <018001c75d09$49ef0b00$6400a8c0@Dell4500> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <723208.68793.qm@web31808.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.617 tagged_above=0 required=5 tests=AWL, BAYES_50 X-Spam-Level: X-Archive-Number: 200703/16 X-Sequence-Number: 8694 > 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. From karl@denninger.net Fri Mar 2 21:01:06 2007 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 From gweaver@shaw.ca Fri Mar 2 21:13:46 2007 Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 50F4A9FB425 for ; Fri, 2 Mar 2007 17:13:46 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 82088-01 for ; Fri, 2 Mar 2007 17:13:43 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from pd8mo1no.prod.shaw.ca (idcmail-mo2no.cg.shawcable.net [64.59.134.9]) by postgresql.org (Postfix) with ESMTP id A27E99FB3A4 for ; Fri, 2 Mar 2007 17:13:42 -0400 (AST) Received: from pd7mr1no.prod.shaw.ca (pd7mr1no-qfe3.prod.shaw.ca [10.0.144.128]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JEA001IDO8RM080@l-daemon> for pgsql-odbc@postgresql.org; Fri, 02 Mar 2007 14:12:27 -0700 (MST) Received: from pn7ml2no.prod.shaw.ca ([10.0.149.111]) by pd7mr1no.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JEA000K5O8POLC1@pd7mr1no.prod.shaw.ca> for pgsql-odbc@postgresql.org; Fri, 02 Mar 2007 14:12:25 -0700 (MST) Received: from Dell4500 ([24.77.157.242]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with SMTP id <0JEA006K4O8HDSC0@l-daemon> for pgsql-odbc@postgresql.org; Fri, 02 Mar 2007 14:12:26 -0700 (MST) Date: Fri, 02 Mar 2007 15:12:20 -0600 From: George Weaver Subject: Re: ODBC problem with Microsoft Word and Excel To: pgsql-odbc@postgresql.org Message-id: <01af01c75d0f$79335b90$6400a8c0@Dell4500> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Mailer: Microsoft Outlook Express 6.00.2900.3028 Content-type: text/plain; format=flowed; charset=iso-8859-1; reply-type=original Content-transfer-encoding: 7bit X-Priority: 3 X-MSMail-priority: Normal References: <723208.68793.qm@web31808.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.189 tagged_above=0 required=5 tests=AWL, BAYES_40, DNS_FROM_RFC_POST, FORGED_RCVD_HELO, RCVD_IN_BL_SPAMCOP_NET, SPF_PASS X-Spam-Level: ** X-Archive-Number: 200703/18 X-Sequence-Number: 8696 But Richard Broersma Jr noted: > 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. I don't disagree that it would be desirable to be able to get Office products to "play nice" with the PostgreSQL ODBC driver (or vice versa), if that's the OP's objective. On the other hand, if his objective is to pull data into Word or Excel for the purposes he mentioned (the ends rather than the means), the .udl approach works. Regards, George From david.gardner@yucaipaco.com Fri Mar 2 23:24:06 2007 Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id A003D9FB434 for ; Fri, 2 Mar 2007 19:24:06 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 99760-03 for ; Fri, 2 Mar 2007 19:24:04 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from yucaipaco.com (yucaipaco.com [82.165.181.113]) by postgresql.org (Postfix) with ESMTP id C71889FB427 for ; Fri, 2 Mar 2007 19:24:03 -0400 (AST) Received: (qmail 10148 invoked by uid 210); 2 Mar 2007 15:26:28 -0800 Received: from 10.23.112.225 by yucmail (envelope-from , uid 201) with qmail-scanner-1.25st (clamdscan: 0.88.2/1624. f-prot: 4.6.5/3.16.13. spamassassin: 3.1.3. perlscan: 1.25st. Clear:RC:1(10.23.112.225):. Processed in 0.339285 secs); 02 Mar 2007 23:26:28 -0000 Received: from unknown (HELO ?10.23.112.225?) (yucrelay@10.23.112.225) by yucaipaco.com with ESMTPA; 2 Mar 2007 15:26:27 -0800 Message-ID: <45E8B1F2.4020804@yucaipaco.com> Date: Fri, 02 Mar 2007 15:23:30 -0800 From: David Gardner User-Agent: Thunderbird 1.5.0.9 (X11/20070131) MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Re: ODBC problem with Microsoft Word and Excel References: <00bc01c75d00$fcbd5c40$0d01a8c0@karlsdesktop> In-Reply-To: <00bc01c75d00$fcbd5c40$0d01a8c0@karlsdesktop> Content-Type: text/plain; charset=windows-1250 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/20 X-Sequence-Number: 8698 I remember having problems with this. What I did was to move my query to a pqsql function, and then pass Word the ODBC DSN with a SQL query of "SELECT * FROM mypgfunction(parameter)". I also ran into a problem where Word would see the column names correctly, and the row count would be correct, but all the data fields were blank, I switched to using the ANSI driver and that resolved it. Take a look at the following VBA code snipet: Dim oWord As Word.Application Dim oDoc As Word.Document Dim oMM As Word.mailmerge 'Start Word Set oWord = CreateObject("Word.Application") oWord.Visible = True ' create new document Set oMM = oWord.Documents.Add.mailmerge End If oMM.MainDocumentType = wdFormLetters oMM.OpenDataSource Name:="", Connection:="DSN=DSNName", SQLStatement:="SELECT * FROM mypgfunction(stuff)" oMM.ShowWizard 1 oMM.EditMainDocument Karl Denninger wrote: > > I’ve loaded the most recent ODBC driver off the Postgresql FTP site. > > > > The DBMS is functioning, has other applications (libpq, etc) operating > perfectly, and the “Test” functionality from the “Data Sources” setup > shows that I can connect to the database desired when I declare the > connection. > > > > However, when I attempt to go into either WORD (to use it as a mail > merge source) or EXCEL (just for grins to pull data from there) I > connect to “ODBC DSN”, click “PostgreSQL30W” (the driver that was set > up in the Data Sources panel), I immediately get “Unable to get list > of tables from the data source”. > > > > What’s going on?! > > > > -- Karl Denninger karl@denninger.net > > Diving? See http://www.scubaforum.org > > > > > -- > 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 > From gweaver@shaw.ca Mon Mar 5 15:20:07 2007 Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 03C8F9FB261 for ; Mon, 5 Mar 2007 11:20:07 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 59316-01-3 for ; Mon, 5 Mar 2007 11:19:44 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from pd6mo1no.prod.shaw.ca (idcmail-mo2no.cg.shawcable.net [64.59.134.9]) by postgresql.org (Postfix) with ESMTP id 078E79FB31F for ; Mon, 5 Mar 2007 11:19:44 -0400 (AST) Received: from pd5mr4no.prod.shaw.ca (pd5mr4no-svcs.prod.shaw.ca [10.0.144.215]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JEF003QDRWVRW60@l-daemon> for pgsql-odbc@postgresql.org; Mon, 05 Mar 2007 08:19:43 -0700 (MST) Received: from pn7ml1no.prod.shaw.ca ([10.0.149.110]) by pd5mr4no.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JEF001SMRWUZ1I1@pd5mr4no.prod.shaw.ca> for pgsql-odbc@postgresql.org; Mon, 05 Mar 2007 08:19:43 -0700 (MST) Received: from Dell4500 ([24.77.157.242]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with SMTP id <0JEF00LHURWGBP70@l-daemon> for pgsql-odbc@postgresql.org; Mon, 05 Mar 2007 08:19:42 -0700 (MST) Date: Mon, 05 Mar 2007 09:19:46 -0600 From: George Weaver Subject: Re: ODBC problem with Microsoft Word and Excel To: pgsql-odbc@postgresql.org Message-id: <004501c75f39$b6825d80$6400a8c0@Dell4500> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Mailer: Microsoft Outlook Express 6.00.2900.3028 Content-type: multipart/alternative; boundary="----=_NextPart_000_0042_01C75F07.6AE68310" X-Priority: 3 X-MSMail-priority: Normal References: <00c701c75d0d$de412dc0$0d01a8c0@karlsdesktop> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.439 tagged_above=0 required=5 tests=AWL, BAYES_05, FORGED_RCVD_HELO, HTML_50_60, HTML_MESSAGE, SPF_PASS X-Spam-Level: X-Archive-Number: 200703/27 X-Sequence-Number: 8705 This is a multi-part message in MIME format. ------=_NextPart_000_0042_01C75F07.6AE68310 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: quoted-printable Original Message From "Karl Denninger"=20 >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. I don't think the problem resides on the PostgreSQL side of things but = the Office side. From my experience and from what I can gather Office = needs a separate file (.udl .odc, etc) in order to display the results = properly. The discussion here might provide some further insight (first topic - = Subject: Re: Mail Merge to SQL Server without using an external ODC): http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?q= uery=3Ddsn+less&dg=3Dmicrosoft.public.word.mailmerge.fields&cat=3Den_us_e= e88ce09-9e34-4b0c-8aba-2e17252d39bc&lang=3Den&cr=3Dus&pt=3D&catlist=3D&dg= list=3D&ptlist=3D&exp=3D&sloc=3Den-us HTH George "When you see a new trail, or a footprint you do not know, follow it to the point of knowing." - Uncheedah, Grandmother of Ohiyesa ------=_NextPart_000_0042_01C75F07.6AE68310 Content-Type: text/html; charset="windows-1250" Content-Transfer-Encoding: quoted-printable
Original Message From "Karl Denninger"=20
>The part I don't understand is that = I enabled=20 logging and it appears to be
>returning the table list!  = Immediately=20 after I attempt the connect from
>either EXCEL or WORD I pulled = the=20 logfiles.
 
I don't think the problem resides on = the PostgreSQL=20 side of things but the Office side.  From my experience and from = what I can=20 gather Office needs a separate file (.udl .odc, etc) in order to display = the=20 results properly.
 
The discussion here might provide some = further=20 insight (first topic - Subject: Re: Mail Merge to SQL Server without = using an=20 external ODC):
 
http://www.microsoft.com/communities/newsgroups/list/en-us/defau= lt.aspx?query=3Ddsn+less&dg=3Dmicrosoft.public.word.mailmerge.fields&= amp;cat=3Den_us_ee88ce09-9e34-4b0c-8aba-2e17252d39bc&lang=3Den&cr= =3Dus&pt=3D&catlist=3D&dglist=3D&ptlist=3D&exp=3D&= ;sloc=3Den-us
 
HTH
George
 
"When you see a new trail, or a = footprint you do=20 not know,
        follow it to the = point=20 of knowing."
   - Uncheedah, Grandmother of = Ohiyesa
 
------=_NextPart_000_0042_01C75F07.6AE68310-- From karl@denninger.net Mon Mar 5 15:31:11 2007 Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 0C9579FB251 for ; Mon, 5 Mar 2007 11:31:11 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 62437-05 for ; Mon, 5 Mar 2007 11:31:07 -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 DDE109FB27C for ; Mon, 5 Mar 2007 11:31:04 -0400 (AST) Received: from karlsdesktop (localhost [127.0.0.1]) by FS.denninger.net (8.13.8/8.13.1) with SMTP id l25FV2Tm083890 for ; Mon, 5 Mar 2007 09:31:02 -0600 (CST) (envelope-from karl@denninger.net) Received: from karlsdesktop [192.168.1.13] by Spamblock-sys (LOCAL); Mon Mar 5 09:31:02 2007 From: "Karl Denninger" To: "'George Weaver'" , Subject: Re: ODBC problem with Microsoft Word and Excel Date: Mon, 5 Mar 2007 09:31:02 -0600 Message-ID: <025301c75f3b$481ae5e0$0d01a8c0@karlsdesktop> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0254_01C75F08.FD8075E0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6822 Importance: Normal Thread-Index: AcdfOe+LkCHd4oDkSrihPcJtEZ1N6QAASkuw In-Reply-To: <004501c75f39$b6825d80$6400a8c0@Dell4500> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-SPAMBLOCK-MATCH: Matched [@postgresql.org+], message ok X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.541 tagged_above=0 required=5 tests=AWL, BAYES_50, FORGED_RCVD_HELO, HTML_MESSAGE, HTML_TEXT_AFTER_BODY X-Spam-Level: X-Archive-Number: 200703/28 X-Sequence-Number: 8706 This is a multi-part message in MIME format. ------=_NextPart_000_0254_01C75F08.FD8075E0 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: quoted-printable Interesting. =20 If I create a blank =93.UDL=94 file I can then stick in that and it = appears to work, but its SEVERELY limited. =20 I can=92t get at anything from Word EXCEPT for the single database that = I defined in the SQL setup in =93Data Sources=94 =96 and I can only have = one on the machine! This is a potential problem of course=85=85 there=92s a lot = more than one database on the SQL server=85.. =20 But =96 it DOES appear to work for mail merge this way =96 its just = kludgy as heck. =20 -- Karl Denninger HYPERLINK = "mailto:karl@denninger.net"karl@denninger.net Diving? See HYPERLINK = "http://www.scubaforum.org"http://www.scubaforum.org=20 -----Original Message----- From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of George Weaver Sent: Monday, March 05, 2007 9:20 AM To: pgsql-odbc@postgresql.org Subject: Re: [ODBC] ODBC problem with Microsoft Word and Excel =20 Original Message From "Karl Denninger"=20 >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. =20 I don't think the problem resides on the PostgreSQL side of things but = the Office side. From my experience and from what I can gather Office needs = a separate file (.udl .odc, etc) in order to display the results properly. =20 The discussion here might provide some further insight (first topic - Subject: Re: Mail Merge to SQL Server without using an external ODC): =20 HYPERLINK "http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?= que ry=3Ddsn+less&dg=3Dmicrosoft.public.word.mailmerge.fields&cat=3Den_us_ee8= 8ce09-9e3 4-4b0c-8aba-2e17252d39bc&lang=3Den&cr=3Dus&pt=3D&catlist=3D&dglist=3D&ptl= ist=3D&exp=3D&slo c=3Den-us"http://www.microsoft.com/communities/newsgroups/list/en-us/defa= ult.a spx?query=3Ddsn+less&dg=3Dmicrosoft.public.word.mailmerge.fields&cat=3Den= _us_ee88c e09-9e34-4b0c-8aba-2e17252d39bc&lang=3Den&cr=3Dus&pt=3D&catlist=3D&dglist= =3D&ptlist=3D&e xp=3D&sloc=3Den-us =20 HTH George =20 "When you see a new trail, or a footprint you do not know, follow it to the point of knowing." - Uncheedah, Grandmother of Ohiyesa =20 --=20 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.7/710 - Release Date: 3/4/2007 1:58 PM =20 ------=_NextPart_000_0254_01C75F08.FD8075E0 Content-Type: text/html; charset="windows-1250" Content-Transfer-Encoding: quoted-printable

Interesting.

 

If I create a blank =93.UDL=94 file = I can then stick in that and it appears to work, but its SEVERELY = limited.

 

I can=92t get at anything from Word = EXCEPT for the single database that I defined in the SQL setup in =93Data = Sources=94 =96 and I can only have one on the machine!=A0 This is a potential problem of = course=85=85 there=92s a lot more than one database on the SQL = server=85..

 

But =96 it DOES appear to work for = mail merge this way = =96 its just kludgy as heck.

 

-- Karl Denninger  karl@denninger.net

Diving?  See http://www.scubaforum.org =

-----Original = Message-----
From: pgsql-odbc-owner@postgresql.org [
mailto:pgsql-odbc-owner@postgre= sql.org] On Behalf Of George = Weaver
Sent: Monday, March 05, = 2007 9:20
AM
To: = pgsql-odbc@postgresql.org
Subject: Re: [ODBC] ODBC = problem with Microsoft Word and Excel

 

Original Message From = "Karl Denninger"

>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.

 

I don't think the problem = resides on the PostgreSQL side of things but the Office side.  From my = experience and from what I can gather Office needs a separate file (.udl .odc, etc) in = order to display the results properly.

 

The discussion here might = provide some further insight (first topic - Subject: Re: Mail Merge to SQL = Server without using an external ODC):

 

 

HTH

George

 

"When you see a new = trail, or a footprint you do not know,
        follow it to the point of knowing."
   - Uncheedah, Grandmother of Ohiyesa

 


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.7/710 - Release Date: 3/4/2007 = 1:58 PM

------=_NextPart_000_0254_01C75F08.FD8075E0-- %SPAMBLOCK-SYS: Matched [@postgresql.org+], message ok From inoue@tpf.co.jp Thu Mar 8 05:08:15 2007 Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 41F659FB1E4 for ; Thu, 8 Mar 2007 01:08:15 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 38652-04 for ; Thu, 8 Mar 2007 01:08:08 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id A2E3C9FB1B9 for ; Thu, 8 Mar 2007 01:06:21 -0400 (AST) Received: (qmail 18566 invoked from network); 8 Mar 2007 14:06:18 +0900 Received: from unknown (HELO ?127.0.0.1?) (100.0.32.170) by sd2.tpf-fw-c.co.jp with SMTP; 8 Mar 2007 14:06:18 +0900 Message-ID: <45EF99C8.8030705@tpf.co.jp> Date: Thu, 08 Mar 2007 14:06:16 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Karl Denninger CC: pgsql-odbc@postgresql.org Subject: Re: ODBC problem with Microsoft Word and Excel References: <00bc01c75d00$fcbd5c40$0d01a8c0@karlsdesktop> In-Reply-To: <00bc01c75d00$fcbd5c40$0d01a8c0@karlsdesktop> Content-Type: text/plain; charset=windows-1250; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.266 tagged_above=0 required=5 tests=AWL, BAYES_50, RCVD_IN_WHOIS_BOGONS X-Spam-Level: * X-Archive-Number: 200703/48 X-Sequence-Number: 8726 Karl Denninger wrote: > I’ve loaded the most recent ODBC driver off the Postgresql FTP site. Could you try the snapshot driver at http://www.geocities.jp/inocchichichi/psqlodbc/index.html ? regards, Hiroshi Inoue From david.paulo@legalfirst.com.au Wed Oct 7 05:47:20 2015 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjhZQ-0003Ei-Ne for pgsql-odbc@arkaria.postgresql.org; Wed, 07 Oct 2015 05:47:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZjhZQ-0003oi-0w for pgsql-odbc@arkaria.postgresql.org; Wed, 07 Oct 2015 05:47:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZjhZP-0003ob-Ln for pgsql-odbc@postgresql.org; Wed, 07 Oct 2015 05:47:19 +0000 Received: from mbob.nabble.com ([162.253.133.15]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZjhZH-0000pR-8G for pgsql-odbc@postgresql.org; Wed, 07 Oct 2015 05:47:18 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 541FE172059B for ; Tue, 6 Oct 2015 22:39:50 -0700 (PDT) Date: Tue, 6 Oct 2015 22:47:07 -0700 (MST) From: "david.paulo" To: pgsql-odbc@postgresql.org Message-ID: <1444196827343-5869049.post@n5.nabble.com> In-Reply-To: <00bc01c75d00$fcbd5c40$0d01a8c0@karlsdesktop> References: <00bc01c75d00$fcbd5c40$0d01a8c0@karlsdesktop> Subject: Re: ODBC problem with Microsoft Word and Excel MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org Here is what I needed to do 1) Use ANSI odbc driver - this is key - Unicode does not work - I am using version 9.03.04.00. In this example the name of the odbc DSN is LFData. It has a username and password embedded in it. 2) It may not be needed for word merge (I am also doing separate queries) but I registered Microsoft ActiveX Data Objects 6.1 Library from the VBA Tools menu 3) Within the macro that performs the merge I have the following (xcfPax is a view that provides the fields for the merge): SQLRequest = "select * from xcfPax where matterno = '" & matterRef & "'" Doc.MailMerge.MainDocumentType = wdFormLetters Doc.MailMerge.Destination = wdSendToNewDocument Doc.MailMerge.OpenDataSource _ Name:="", _ SQLStatement:=SQLRequest, _ AddToRecentFiles:=False, _ Connection:="DSN=LFData", _ SubType:=wdMergeSubTypeWord2000 ' Execute the mail merge. Doc.MailMerge.Execute Doc.MailMerge.DataSource.Close -- View this message in context: http://postgresql.nabble.com/ODBC-problem-with-Microsoft-Word-and-Excel-tp2189996p5869049.html Sent from the PostgreSQL - odbc mailing list archive at Nabble.com. -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc