Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 7CB419FB26E for ; Sun, 5 Aug 2007 20:41:31 -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 79889-03 for ; Sun, 5 Aug 2007 20:41:22 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from rwcrmhc14.comcast.net (rwcrmhc14.comcast.net [204.127.192.84]) by postgresql.org (Postfix) with ESMTP id CD83B9FB4B4 for ; Sun, 5 Aug 2007 20:41:15 -0300 (ADT) Received: from [192.168.0.9] (c-67-160-97-72.hsd1.wa.comcast.net[67.160.97.72]) by comcast.net (rwcrmhc14) with ESMTP id <20070805234113m140021t0ve>; Sun, 5 Aug 2007 23:41:14 +0000 From: Adrian Klaver To: pgsql-odbc@postgresql.org Subject: Re: Strange ODBC behavior. Date: Sun, 5 Aug 2007 16:41:18 -0700 User-Agent: KMail/1.9.1 Cc: Paul Lambert References: <46B288AF.60907@autoledgers.com.au> <46B331EA.609@commandprompt.com> <46B64E81.8020803@autoledgers.com.au> In-Reply-To: <46B64E81.8020803@autoledgers.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708051641.18640.aklaver@comcast.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/9 X-Sequence-Number: 9126 On Sunday 05 August 2007 3:26 pm, Paul Lambert wrote: > Andrei Kovalevski wrote: > >> 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. > > I believe I have found the problem. > > The primary key fields are defined in PG as type text, but MS access is > bringing them across as type "memo" - whatever that is. > > It seems to be bringing most text type fields across like this. > > I changed them to varchar on one of the tables I'm having a problem > with, relinked and they are coming across with a type of text on the > fields now and I can see the data without issue. > > Strange... has anyone see that before? Actually this has been noted before. Search Google or psql-odbc archives for references. There are some changes you can make to the ODBC settings to help. Unfortunately, I cannot remember them off the top of my head. I only bring this up because I saw your post on the general list about changing the type of 600 text columns. You might find it easier to change the behavior of the ODBC driver. -- Adrian Klaver aklaver@comcast.net