X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 33D41D1D2E7 for ; Tue, 27 Jan 2004 15:29: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 13667-01 for ; Tue, 27 Jan 2004 11:29:07 -0400 (AST) Received: from web20803.mail.yahoo.com (web20803.mail.yahoo.com [216.136.226.192]) by svr1.postgresql.org (Postfix) with SMTP id 45A9AD1D205 for ; Tue, 27 Jan 2004 11:29:02 -0400 (AST) Message-ID: <20040127152904.13570.qmail@web20803.mail.yahoo.com> Received: from [208.13.35.65] by web20803.mail.yahoo.com via HTTP; Tue, 27 Jan 2004 07:29:04 PST Date: Tue, 27 Jan 2004 07:29:04 -0800 (PST) From: Jeff Eckermann Subject: Re: [HELP] MSAccess picks wrong keys To: Aaron Spike , pgsql-odbc@postgresql.org In-Reply-To: <4015499E.20269.1DF7E5D@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/98 X-Sequence-Number: 3727 --- Aaron Spike wrote: > > So, for you this should "just work". I don't have > an > > answer, but maybe someone else can suggest it. > > Well it didn't just work. Until I dropped and > recreated the table and > copied the data back in. Now it works fine. Its > almost like the > driver knew that the index was on the first field > and the last two > fields. > > Problems and fixes aside can anyone offer more > information on how the > pgodbc driver and access decide whether or not to > present the "Select > Unique Record Identifier" dialogue when linking > tables? I suspect that is up to the ODBC driver. Anybody feel like hunting through the code for "SQLPrimaryKeys()"? ;-) > > > If you don't have logging enabled, you may want to > try > > that for a while; there may be some clues in > there. > > Logging with the odbc driver or on the server? Driver (MyLog) logging will tell you exactly what the driver is sending to the server, and what it is doing with what it gets back. But that is extremely verbose and hard to follow. But may be indispensable if you are having a problem. > > > BTW, I suggest you reconsider your use of a > composite > > primary key. The fact that they are supported > doesn't > > make them a good idea. > > Not my choice actually, but after working with them > for some time I > they have grown on me. > > Aaron Spike __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/