X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 6882FD1EA63 for ; Sun, 4 Apr 2004 15:31:34 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 97801-06 for ; Sun, 4 Apr 2004 12:31:54 -0300 (ADT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by svr1.postgresql.org (Postfix) with ESMTP id 0A5E7D1E9FB for ; Sun, 4 Apr 2004 12:31:32 -0300 (ADT) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BA9bJ-0000Qt-00 for ; Sun, 04 Apr 2004 17:31:57 +0200 Received: from 24-151-240-198.chartertn.net ([24.151.240.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 Apr 2004 17:31:57 +0200 Received: from dbase4 by 24-151-240-198.chartertn.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 Apr 2004 17:31:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-odbc@postgresql.org From: "David P. Lurie" Subject: Linked file problem after alter table in Access 2003 Date: Sun, 4 Apr 2004 11:32:08 -0400 Lines: 64 Message-ID: X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 24-151-240-198.chartertn.net X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/13 X-Sequence-Number: 3908 psqlODBC 07.03.02 PostgreSQL 7.4.1 (Cygwin) MS Access 2003 Win XP Pro I imported a table with 84 fields into Access 2002 from an application running on SCO OSR 5.0.7 that uses an old RDBMS named Unify 6.0. It exported without incident to 7.4.1 (cygwin) on the Windows box, and also to 7.3.4 on the SCO box. Access 2002 could link or import from either postgresql table without incident. I upgraded Office XP to Office 2003 yesterday, and have had some file linking problems after some table modifications that may not be related to the Access upgrade. Only 13 of the 84 columns from the original table are relevant to my current project. 71 unneeded columns were dropped from the table with pgAdminIII on the cygwin server , and the database was vacuumed. The table data could subsequently be viewed with pgAdminIII. Subsequent attempts to link to the table from Access 2003 were unsuccessful. Deleting and recreating a linked table within Access 2003 resulted in retrieval of all 8938 rows of the table, all as identical copies of the first row of the table, despite correct recognition of the unique primary key from the postgresql table. Importing the table resulted in an accurate, functioning local Access 2003 table, including the correct unique primary key. Deleting the primary key on the postgresql side , a single varchar(6) column, resulted in apparently normal linking and importing to Access 2003, requiring specification of the primary key field as expected. Recreating the primary key on the postgresql side resulted in recurrence of the original problem, which could be resolved by deleting the primary key again. Clearing the table with 'Delete from table_name;' followed by repopulating with the contents of the local Access table, using an Access append query, resulted in the same problems. Dropping the table, then recreating it by exporting the local Access table resulted in apparently normal file linking and importing from postgresql. Is this a problem with Access 2003, or is it a problem that can occur after extensive table alteration? I don't plan to make such extensive table modifications in the future, but do anticipate some minor modifications will be needed. Thanks, David P. Lurie