Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 613E4475E24 for ; Wed, 8 Jan 2003 20:56:42 -0500 (EST) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 523F2475DBD for ; Wed, 8 Jan 2003 20:56:41 -0500 (EST) Received: (qmail 31959 invoked from network); 9 Jan 2003 01:56:44 -0000 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 9 Jan 2003 01:56:44 -0000 Received: from tpf.co.jp (3dgateway1 [126.0.1.60]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id KAA16379; Thu, 9 Jan 2003 10:56:39 +0900 (JST) Message-ID: <3E1CD752.84965811@tpf.co.jp> Date: Thu, 09 Jan 2003 10:58:42 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: Harry Broomhall Cc: pgsql-odbc@postgresql.org Subject: Re: Problems with PGSQL ODBC drivers References: <200301081733.RAA72769@haeb.noc.uk.easynet.net> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/42 X-Sequence-Number: 2541 Harry Broomhall wrote: > > I posted this to the general newsgroup > 'comp.databases.postgresql.questions' a little while ago, and got no takers! > > > > As I am fairly sure this is a ODBC driver issue I am reposting it here, > somewhat ammended, in the hope of enlightenment. > > =================================== > > I have run up against a problem trying to use the PostgreSQL ODBC > Windows driver, and wondered if anyone can point me in the right > direction. > > Basics: > > Server: PostgreSQL 7.2.1 on i386-unknown-freebsd4.5, > compiled by GCC 2.95.3 > > ODBC driver: PostgreSQL (not beta) 7.02.00.05 > > Windows: NT4 - SP 4 > > Excel 2000 > > I have a view on the server from which I wish to import data into > Excel, using MS Query. > > If I type the SQL query direct into MSQuery it works fine, and the > data is fetched. > > If I attempt to use the MSQuery 'wizard' then when I get to 'Finish' > and ask to return the data to Excel then I get an Error box with the > message: "Error: No such attribute or function 'oid'". This message > is echoed in the PostgreSQL logs. > > I enabled the log files in the ODBC driver, and noticed that an > attribute 'oid' was added to the query that I would otherwise have > expected the MSQuery app to send. AFAIK views don't have oids, so it > would seem to me that the driver is misidentifying the view as a table > with oids? Please try to turn off the *Updatable cursors* DSN option. regards, Hiroshi Inoue http://w2422.nsk.ne.jp/~inoue/