From carter@fortedata.com Tue Jun 17 12:24:42 2003 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 1E3F730F073 for ; Tue, 17 Jun 2003 12:24:42 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 15112-05 for ; Tue, 17 Jun 2003 09:24:31 -0300 (ADT) Received: from fortedata.com (mail.fortedata.com [64.6.191.17]) by svr1.postgresql.org (Postfix) with ESMTP id 954B430F104 for ; Tue, 17 Jun 2003 09:24:28 -0300 (ADT) Received: from carter (plq.fortedata.com [199.72.29.138]) by fortedata.com (8.11.6/8.9.3) with ESMTP id h5HCR8H32553 for ; Tue, 17 Jun 2003 08:27:09 -0400 From: "Carter Patterson" To: Subject: Trouble Importing Data to Excel "unable to obtain a list of tables" Date: Tue, 17 Jun 2003 08:24:17 -0400 Message-ID: <002601c334cb$5f758a90$f90000c0@carter> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0027_01C334A9.D863EA90" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 X-Spam-Status: No, hits=0.3 tagged_above=0.0 required=5.0 tests=HTML_70_80 X-Spam-Level: X-Archive-Number: 200306/37 X-Sequence-Number: 3011 This is a multi-part message in MIME format. ------=_NextPart_000_0027_01C334A9.D863EA90 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I am trying to connect Excel and Postgres. I have Postgres 7.3.2 installed on RH 8.0 box. I have loaded pgsqlodbc 7.3.1 installed on my Windows XP Professional. MS Excel 2002 I went to Control Panel, Admin Tools, DataSources and added a DSN for Postgres. I checked the 7.X, 6.4 box. I also told it to show system tables. In Excel, I choose Data, Import External Data, Import Data, Connect to New Data Source--- This takes me to the Excel Wizard where I choose ODBC - DSN, then I select Postgresql30. It then tells me unable to obtain a list of tables. Any help or direction to documentation would be appreciated. thanks ------=_NextPart_000_0027_01C334A9.D863EA90 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am trying to connect Excel and Po= stgres. 

 

I have Postgres 7.3.2 instal= led on RH 8.0 box.

I have loaded pgsqlodbc 7.3.= 1 installed on my Windows XP Professional.

MS Excel 2002

 

I went to Control Panel, Admin Tools, DataSources and added a DSN for Postgres.  I checked the 7.X, 6.4 box.

I also told it to show system tables.<= /font>

 

 

In Excel, I choose Data, Import External Data, Import Da= ta, Connect to New Data Source---=

 

This takes me to the Excel Wizard where I choose ODBC &#= 8211; DSN, then I select Postgresql30.  It then tells me unable to obtain = a list of tables.

 

Any help or direction to documentation would be apprecia= ted.  thanks

 

 

 

------=_NextPart_000_0027_01C334A9.D863EA90-- From jeff_eckermann@yahoo.com Tue Jun 17 14:03:44 2003 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 7A0D630F01F for ; Tue, 17 Jun 2003 14:03:44 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 25915-06 for ; Tue, 17 Jun 2003 11:03:33 -0300 (ADT) Received: from web20810.mail.yahoo.com (web20810.mail.yahoo.com [216.136.226.199]) by svr1.postgresql.org (Postfix) with SMTP id 3257E30DC8A for ; Tue, 17 Jun 2003 11:03:33 -0300 (ADT) Message-ID: <20030617140332.52097.qmail@web20810.mail.yahoo.com> Received: from [208.13.35.65] by web20810.mail.yahoo.com via HTTP; Tue, 17 Jun 2003 07:03:32 PDT Date: Tue, 17 Jun 2003 07:03:32 -0700 (PDT) From: Jeff Eckermann Subject: Re: Trouble Importing Data to Excel "unable to obtain a list of tables" To: Carter Patterson , pgsql-odbc@postgresql.org In-Reply-To: <002601c334cb$5f758a90$f90000c0@carter> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200306/38 X-Sequence-Number: 3012 --- Carter Patterson wrote: > I am trying to connect Excel and Postgres. > > I have Postgres 7.3.2 installed on RH 8.0 box. > I have loaded pgsqlodbc 7.3.1 installed on my > Windows XP Professional. > MS Excel 2002 > > I went to Control Panel, Admin Tools, DataSources > and added a DSN for > Postgres. I checked the 7.X, 6.4 box. > I also told it to show system tables. > > > In Excel, I choose Data, Import External Data, > Import Data, Connect to > New Data Source--- > > This takes me to the Excel Wizard where I choose > ODBC - DSN, then I > select Postgresql30. It then tells me unable to > obtain a list of > tables. Sounds like you have done everything right, so I would suspect a connection problem. Is your Postgres accepting tcp/ip connections (needs postmaster started with "-i" switch, or "tcpip = true" in postgresql.conf)? Do you have logging enabled for ODBC or for Postgres? If so, what do the logs show? __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com From carter@fortedata.com Tue Jun 17 14:21:58 2003 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 1CED030F01F for ; Tue, 17 Jun 2003 14:21:58 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 31692-06 for ; Tue, 17 Jun 2003 11:21:47 -0300 (ADT) Received: from fortedata.com (mail.fortedata.com [64.6.191.17]) by svr1.postgresql.org (Postfix) with ESMTP id 1EC4530F0A3 for ; Tue, 17 Jun 2003 11:21:46 -0300 (ADT) Received: from carter (plq.fortedata.com [199.72.29.138]) by fortedata.com (8.11.6/8.9.3) with ESMTP id h5HEORH03962 for ; Tue, 17 Jun 2003 10:24:27 -0400 From: "Carter Patterson" To: Subject: Re: Trouble Importing Data to Excel "unable to obtain a list of tables" Date: Tue, 17 Jun 2003 10:21:35 -0400 Message-ID: <003701c334db$c2871260$f90000c0@carter> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 In-Reply-To: <20030617140332.52097.qmail@web20810.mail.yahoo.com> X-Archive-Number: 200306/39 X-Sequence-Number: 3013 Jeff: I do have the '-i' option on through postgresql.conf flag. I can connect to pgadmin without a problem. In excel, it has a "Test Connection" button. It works fine. But when I try to get a list of tables, I get the error message Login failed: Catalog information cannot be retrieved. I know the login and password are good. Here is the log. Thanks for your help. Carter conn=35469000, PGAPI_DriverConnect( in)='DSN=PostgreSQL30;UID=carter;PWD=xxxxxxxx;', fDriverCompletion=0 DSN info: DSN='PostgreSQL30',server='63.64.82.12',port='5432',dbase='forte',user=' carter',passwd='xxxxx' onlyread='0',protocol='6.4',showoid='0',fakeoidindex='0',showsystable='0 ' conn_settings='',conn_encoding='OTHER' translation_dll='',translation_option='' conn=35469000, PGAPI_DriverConnect( in)='DSN=PostgreSQL30;UID=carter;PWD=xxxxxxxx;', fDriverCompletion=0 DSN info: DSN='PostgreSQL30',server='63.64.82.12',port='5432',dbase='forte',user=' carter',passwd='xxxxx' onlyread='0',protocol='6.4',showoid='0',fakeoidindex='0',showsystable='0 ' conn_settings='',conn_encoding='OTHER' translation_dll='',translation_option='' -----Original Message----- From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Jeff Eckermann Sent: Tuesday, June 17, 2003 9:04 AM To: Carter Patterson; pgsql-odbc@postgresql.org Subject: Re: [ODBC] Trouble Importing Data to Excel "unable to obtain a list of tables" --- Carter Patterson wrote: > I am trying to connect Excel and Postgres. > > I have Postgres 7.3.2 installed on RH 8.0 box. > I have loaded pgsqlodbc 7.3.1 installed on my > Windows XP Professional. > MS Excel 2002 > > I went to Control Panel, Admin Tools, DataSources > and added a DSN for > Postgres. I checked the 7.X, 6.4 box. > I also told it to show system tables. > > > In Excel, I choose Data, Import External Data, > Import Data, Connect to > New Data Source--- > > This takes me to the Excel Wizard where I choose > ODBC - DSN, then I > select Postgresql30. It then tells me unable to > obtain a list of > tables. Sounds like you have done everything right, so I would suspect a connection problem. Is your Postgres accepting tcp/ip connections (needs postmaster started with "-i" switch, or "tcpip = true" in postgresql.conf)? Do you have logging enabled for ODBC or for Postgres? If so, what do the logs show? __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org From iceman@sunbeach.net Tue Jun 17 14:23:00 2003 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 38CDE30EFC2 for ; Tue, 17 Jun 2003 14:23:00 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 32512-04 for ; Tue, 17 Jun 2003 11:22:49 -0300 (ADT) Received: from barbadosport.com (unknown [200.50.131.179]) by svr1.postgresql.org (Postfix) with ESMTP id 4741A30F101 for ; Tue, 17 Jun 2003 11:22:46 -0300 (ADT) Received: from mis11 [192.168.100.107] by barbadosport.com (SMTPD32-7.07) id A3D463F0130; Tue, 17 Jun 2003 10:21:08 -0400 Message-ID: <001701c334db$d84b6dd0$6b64a8c0@mis11> From: "Rommel the iCeMAn" To: "PostgreSQL ODBC List" References: <20030617140332.52097.qmail@web20810.mail.yahoo.com> Subject: Re: Trouble Importing Data to Excel "unable to obtain a list of tables" Date: Tue, 17 Jun 2003 10:22:09 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Archive-Number: 200306/40 X-Sequence-Number: 3014 I also had a strikingly similar problem while trying to connect from Crystal Reports. It only worked when I changed all the PostgreSQL table names to lowercase. I read somewhere that uppercase names can be used if enclosed in quotes but that didn't work for me. just a suggestion :-) Rommel the iCeMAn Computer Programmer Barbados, Caribbean. From jeff_eckermann@yahoo.com Wed Jun 18 14:05:14 2003 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id C83C030DC47 for ; Wed, 18 Jun 2003 14:05:14 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 60818-04 for ; Wed, 18 Jun 2003 11:05:04 -0300 (ADT) Received: from web20805.mail.yahoo.com (web20805.mail.yahoo.com [216.136.226.194]) by svr1.postgresql.org (Postfix) with SMTP id C0EA330DC29 for ; Wed, 18 Jun 2003 11:05:03 -0300 (ADT) Message-ID: <20030618140504.15815.qmail@web20805.mail.yahoo.com> Received: from [208.13.35.65] by web20805.mail.yahoo.com via HTTP; Wed, 18 Jun 2003 07:05:04 PDT Date: Wed, 18 Jun 2003 07:05:04 -0700 (PDT) From: Jeff Eckermann Subject: Re: Trouble Importing Data to Excel "unable to obtain a list of tables" To: Rommel the iCeMAn , PostgreSQL ODBC List Cc: carter@fortedata.com In-Reply-To: <001701c334db$d84b6dd0$6b64a8c0@mis11> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200306/47 X-Sequence-Number: 3021 Carter, Just curious: was this the problem? Jeff --- Rommel the iCeMAn wrote: > I also had a strikingly similar problem while trying > to connect from Crystal > Reports. It only worked when I changed all the > PostgreSQL table names to > lowercase. I read somewhere that uppercase names can > be used if enclosed in > quotes but that didn't work for me. > > just a suggestion :-) > Rommel the iCeMAn > Computer Programmer > Barbados, Caribbean. > > > > ---------------------------(end of > broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com From carter@fortedata.com Wed Jun 18 14:12:22 2003 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 65BA830DCDE for ; Wed, 18 Jun 2003 14:12:22 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 60818-08 for ; Wed, 18 Jun 2003 11:12:06 -0300 (ADT) Received: from fortedata.com (mail.fortedata.com [64.6.191.17]) by svr1.postgresql.org (Postfix) with ESMTP id 6B1B730DC97 for ; Wed, 18 Jun 2003 11:12:05 -0300 (ADT) Received: from carter (plq.fortedata.com [199.72.29.138]) by fortedata.com (8.11.6/8.9.3) with ESMTP id h5IEEmH28956 for ; Wed, 18 Jun 2003 10:14:48 -0400 From: "Carter Patterson" To: "'PostgreSQL ODBC List'" Subject: Re: Trouble Importing Data to Excel "unable to obtain a list of tables" Date: Wed, 18 Jun 2003 10:11:52 -0400 Message-ID: <002b01c335a3$918500a0$f90000c0@carter> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <20030618140504.15815.qmail@web20805.mail.yahoo.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 Importance: Normal X-Archive-Number: 200306/48 X-Sequence-Number: 3022 No, I only use lower case names. I was able to import data into excel via another method. Instead of using the Excel selection "Import Data", I selected New Database Query, which essentially runs MS Query. This worked just fine. This would lead me to believe that there is a good possibility that the Import Data feature of Excel has its own bugs. Thanks for your help everyone. -----Original Message----- From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Jeff Eckermann Sent: Wednesday, June 18, 2003 9:05 AM To: Rommel the iCeMAn; PostgreSQL ODBC List Cc: carter@fortedata.com Subject: Re: [ODBC] Trouble Importing Data to Excel "unable to obtain a list of tables" Carter, Just curious: was this the problem? Jeff --- Rommel the iCeMAn wrote: > I also had a strikingly similar problem while trying > to connect from Crystal > Reports. It only worked when I changed all the > PostgreSQL table names to > lowercase. I read somewhere that uppercase names can > be used if enclosed in > quotes but that didn't work for me. > > just a suggestion :-) > Rommel the iCeMAn > Computer Programmer > Barbados, Caribbean. > > > > ---------------------------(end of > broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org