Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id C21E59FB725 for ; Fri, 3 Aug 2007 10:48:51 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 67040-09 for ; Fri, 3 Aug 2007 10:48:42 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 0638A9FB5F8 for ; Fri, 3 Aug 2007 10:48:17 -0300 (ADT) Received: from [77.109.25.15] (77-109-25-15.dynamic.peoplenet.ua [77.109.25.15]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l73Dm1vR025909; Fri, 3 Aug 2007 06:48:05 -0700 Message-ID: <46B331EA.609@commandprompt.com> Date: Fri, 03 Aug 2007 16:47:22 +0300 From: Andrei Kovalevski User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Paul Lambert CC: pgsql-odbc@postgresql.org Subject: Re: Strange ODBC behavior. References: <46B288AF.60907@autoledgers.com.au> <46B2E981.5000902@autoledgers.com.au> In-Reply-To: <46B2E981.5000902@autoledgers.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.91.1/3849/Fri Aug 3 01:19:47 2007 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Fri, 03 Aug 2007 06:48:06 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/6 X-Sequence-Number: 9123 Paul Lambert wrote: > Paul Lambert wrote: >> I had a server have a power outage on one of my PostgreSQL servers >> yesterday and am having a strange ODBC issue now - not sure if they >> are related occurances though. >> >> I have a table called billing_code and one called models in my >> database. If I connect via psql to the database with my standard db >> user I can see both of these tables as well as the data contained >> within. >> >> If I attempt to link these tables from MS Access, the billing_code >> one returns "The Microsoft Jet database engine could not find the >> object 'public.billing_code'. Make sure the object exists and that >> you spell its name and the path name correctly" - this error despite >> the fact that I had to physically select the table from a list it >> presented me when I went into the linked table manager. >> >> If I link the models table, it links fine, but when I attempt to open >> it, I just get #Deleted in every column of every row for about 54,000 >> rows (the total number in the table) >> >> The same problem happens with some of the other tables in the >> database - some will get the first problem, some will get the second >> problem, and some will link and load data without issue. >> >> I was running odbc driver 8.02.02, I've upgraded to 8.02.04 - just in >> case there was a problem with the driver getting corrupted but the >> problem persists. >> >> Can anyone offer any thoughts or suggestions on what the problem >> might be? >> >> Thanks in advance, >> Paul. >> > > I've done a full pg_dump, deleted the database and tablespaces, > recreated everything, restored the data and the same behavior is being > exhibited - at least as far as returning #Deleted in some of the tables. > > Users with an Access database that already has the table linked don't > have a problem accessing the data, but those adding a new link to the > table do. > > Any thoughts on this or is it more of an access issue? 1) Could you post here CREATE script for one of the tables with problem you descrived? #delete message appears when something happens to the primary keys. 2) What is the version of your MS Access? PostgreSQL? Unicode or ANSI driver version? 3) Please, have a look on the linked table structure as it's recognised by MS Access. And post it here. Andrei.