Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id D09452E011B for ; Wed, 28 Nov 2007 20:43:46 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 12428-09 for ; Wed, 28 Nov 2007 20:43:39 -0400 (AST) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by postgresql.org (Postfix) with SMTP id 3F3CF2E008D for ; Wed, 28 Nov 2007 20:43:43 -0400 (AST) Received: (qmail invoked by alias); 29 Nov 2007 00:43:41 -0000 Received: from i3ED6CAFE.versanet.de (EHLO [192.168.0.112]) [62.214.202.254] by mail.gmx.net (mp034) with SMTP; 29 Nov 2007 01:43:41 +0100 X-Authenticated: #14269776 X-Provags-ID: V01U2FsdGVkX1877lAdAOY7Xql6e3Nw+yzTjo0m0YLhOG1TVpwRY8 IyDMR4iF0ts3Ot Message-ID: <474E0B3B.7070107@gmx.net> Date: Thu, 29 Nov 2007 01:43:39 +0100 From: Andreas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.8.1.9) Gecko/20071030 SeaMonkey/1.1.6 MIME-Version: 1.0 To: "Joshua D. Drake" CC: Greg Cocks , pgsql-odbc@postgresql.org Subject: Re: Hoping - is there a 'automagically' way to emulate the PK/FK, etc settings in PostgreSQL in the relationships in Access? References: <66F6CF82BF58CE4DB4285BE816B297E83547ED@tribble.SMStoller.com> <20071128153058.3f758e7c@commandprompt.com> In-Reply-To: <20071128153058.3f758e7c@commandprompt.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/52 X-Sequence-Number: 9267 Joshua D. Drake schrieb: > On Wed, 28 Nov 2007 16:24:54 -0700 > "Greg Cocks" wrote: > >> Hoping - is there a 'automagically' way to emulate the PK/FK, etc >> settings in PostgreSQL in the relationships in Access? >> > > What do you mean automagically? I haven't used Access in about 7 years > but I seem to recall that if you had the relationship built, access > would pick it up via odbc (at least with other databases). > Maybe he refers to the graphical representation of relations between tables within access MDBs. Then the answer was no. There is no automatic way for all I know. Access can mind fk-constraints only within one mdb file but one can manually draw simple connections between linked in external tables though those are just added sugar that will commodize query design a wee bit. AFAIK Access will use indexes within a postgresql db and is obviously bound to fk-constraints within the backend, though it won't fetch those constraints to use them for any magic like in the query builder. The query builder would know of relations in an MDB and autoconnect tables with such links as soon as they are dropped into the query graph. Cute ... but well ... you know ;) >> aybe lookups to emulate that built in MS Access natively to emulate >> the FK relationships in the PostgreSQL linked tables? >> Like mentioned above you may draw those links yourself. I wouldn't rule out that it might be possible to peek through odbc and analyse the backend to recreate the simple links within Access by VBA. Well, pgAdmin lists the table constraints so why shouldn't Access see them (somehow), too? This might prove to be "interesting" for a winter weekend without anything decent in the telly ;) Regards Andreas