X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx2.hub.org [200.46.204.254]) by postgresql.org (Postfix) with ESMTP id 683FA11F60E2 for ; Tue, 18 Apr 2006 12:43:25 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: -1.481 X-Spam-Level: X-Spam-Status: No, score=-1.481 required=5 tests=[AWL=1.117, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] Received: from postgresql.org ([200.46.204.71]) by localhost (mx2.hub.org [200.46.204.254]) (amavisd-new, port 10024) with ESMTP id fR8XAxsu60g5 for ; Tue, 18 Apr 2006 12:43:13 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from gk-us2.us.michelin.com (gk-us2.michelin.com [156.65.14.19]) by postgresql.org (Postfix) with ESMTP id 169D211F6093 for ; Tue, 18 Apr 2006 12:43:12 -0300 (ADT) Received: from oncpfxp4-out.onc.michelin.com (unverified [10.21.4.32]) by gk-us2.us.michelin.com (Clearswift SMTPRS 5.1.7) with ESMTP id for ; Tue, 18 Apr 2006 11:42:19 -0400 Received: from ONCMH1.onc.michelin.com (ONCMH1.onc.michelin.com [156.65.124.40]) by oncpfxp4-out.onc.michelin.com (Postfix) with ESMTP id 8AE2B1AE9D for ; Tue, 18 Apr 2006 11:43:11 -0400 (EDT) Received: from oncmtap1.onc.michelin.com by oncmh1.onc.michelin.com with ESMTP for pgsql-odbc@postgresql.org; Tue, 18 Apr 2006 11:43:11 -0400 Received: from oncems01.onc.michelin.com ([156.65.125.150]) by oncmtap1.onc.michelin.com (Netscape Messaging Server 4.15) with ESMTP id IXXCZY00.G4T for ; Tue, 18 Apr 2006 11:43:10 -0400 Received: from [10.43.12.183] (unverified) by oncems01.onc.michelin.com (Content Technologies SMTPRS 4.2.5) with ESMTP id ; Tue, 18 Apr 2006 11:43:09 -0400 Message-Id: <4445090D.4060204@us.michelin.com> Date: Tue, 18 Apr 2006 11:43:09 -0400 From: "Campbell, Greg" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jonathan Blitz CC: pgsql-odbc@postgresql.org Subject: Re: PostgreSQL and Access - relink References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------080300000302080809020404" X-Archive-Number: 200604/66 X-Sequence-Number: 7593 This is a multi-part message in MIME format. --------------080300000302080809020404 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I have used the AttachDSNLessTable function from the Microsoft knowledge base article: 892490. Just Google: Access DSNless connection 892490 Cut the function and paste the function. Then you can call it from you application and use the fact that it provides for the tables alias (local) name to smooth out the difference between linked table naming conventions ("mytable" instead of "public_mytable"(PostgreSQL) or "dbo_mytable"(SQL Server), or "myuser_mytable"(oracle)). Jonathan Blitz wrote: > I have an Access project linked to a PostgreSQL database (linked tables). > > I need to be able to switch dynamitically between one PostgreSQL database > and another according to the request from the user. > > Anyone have any code that will do this? > > I assume it will require me to re-link all the tables. > > Jonathan Blitz > > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq --------------080300000302080809020404 Content-Type: text/x-vcard; charset=utf-8; name="greg.campbell.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="greg.campbell.vcf" begin:vcard fn:Greg Campbell n:Campbell;Greg org:Michelin North America - US5 Lexington;ENG-ASE email;internet:greg.campbell@us.michelin.com title:ASE Systems Engineer tel;work:803-951-5561/x75561 x-mozilla-html:FALSE version:2.1 end:vcard --------------080300000302080809020404--