X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7B3BF3B5A6F for ; Fri, 24 Dec 2004 03:07:47 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 65809-06 for ; Fri, 24 Dec 2004 03:07:26 +0000 (GMT) Received: from lakermmtao03.cox.net (lakermmtao03.cox.net [68.230.240.36]) by svr1.postgresql.org (Postfix) with ESMTP id B6A213B5A86 for ; Fri, 24 Dec 2004 03:07:28 +0000 (GMT) Received: from [192.168.102.8] (really [68.11.61.71]) by lakermmtao03.cox.net (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP id <20041224030722.WCHN2250.lakermmtao03.cox.net@[192.168.102.8]>; Thu, 23 Dec 2004 22:07:22 -0500 Message-ID: <41CB87F2.2090102@tnr.cc> Date: Thu, 23 Dec 2004 21:07:30 -0600 From: Randall Smith User-Agent: Mozilla Thunderbird 0.9 (X11/20041124) X-Accept-Language: en-us, en MIME-Version: 1.0 To: George Weaver Cc: pgsql-odbc@postgresql.org Subject: Re: Word 2002 - cannot list tables References: <41C9BDAF.8050102@tnr.cc> <41C9CB6E.7020403@us.michelin.com> <41C9D4A3.8020701@tnr.cc> <00ba01c4e8a6$f01b4270$6400a8c0@Dell4500> In-Reply-To: <00ba01c4e8a6$f01b4270$6400a8c0@Dell4500> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/57 X-Sequence-Number: 4791 Thank you George. I'll give it a try and post my results to this list. It may be a few days because I'm traveling. Happy Holidays! Randall George Weaver wrote: > Hi Randall, > > I'm not going to be harsh. > > You might want to try setting up a "universal data link" (.udl) file in > My Documents, under My Data Sources. I have used such a link on > occasion. I just tried it with Word 2002 and was able to successfully > link to PostgreSQL. > > In My Data Sources create a .txt file and then change the extension to > ".udl". Then double click on the file to open it. It will bring up a > datalink properties wizard that will let you set the provider, etc. Try > the Microsoft OLE DB Provider for ODBC Drivers under Provider. Under > the Connection tab, specify the DSN you set up - it should be in the > drop down box beside "Use data source name". You shouldn't have to set > any other parameters since they should already be set in the DSN you set > up. Try the Test Connection button to see if you can connect. > > In Word 2002, choose Insert Database from the toolbar - then Get Data. > When it asks you to select your data source, click on the .udl file you > just created, then Open. It should retrieve the tables in the database > for you. > > There's not much in the .udl file. This is what was in the file I just > created to test linking to Word : > > [oledb] > ; Everything after this line is an OLE DB initstring > Provider=MSDASQL.1;Persist Security Info=False;Data Source=test72 > > HTH, > > Regards, > George > > > ----- Original Message ----- From: "Randall Smith" > To: "Greg Campbell" > Cc: > Sent: Wednesday, December 22, 2004 2:10 PM > Subject: Re: [ODBC] Word 2002 - cannot list tables > > >> I am trying to merge letters using MS Word 2002. I have set up a DSN >> using the current version of the PostgreSQL ODBC driver. I don't >> think I'm using MS Query. I'm not very familiar with Word (I don't >> personally use it), I'm trying to set up merge documents for someone >> who must use Word. Should be simple. >> >> I try to select the datasource using the 'Open Data Source' button on >> the toolbar. I then select New Source -> ODBC DSN -> 'My PostgreSQL >> DSN' and I get this error: >> >> Unable to obtain a list of tables from the data source. >> >> Randall > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org