Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id EC3551E62E83 for ; Wed, 25 Apr 2012 12:12:13 -0300 (ADT) Received: from smtp-out-04.shaw.ca ([64.59.134.12]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SN3t6-0008Fl-Le for pgsql-odbc@postgresql.org; Wed, 25 Apr 2012 15:12:13 +0000 Received: from lb7f8hsrpno-svcs.dcs.int.inet (HELO pd6ml3no-ssvc.prod.shaw.ca) ([10.0.144.222]) by pd5mo1no-svcs.prod.shaw.ca with ESMTP; 25 Apr 2012 09:11:58 -0600 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=gFGh1ScE7ROJHT2jhivHYaSHya8441O0LZB7wkhlVyo= c=1 sm=1 a=ZmxxVkap8o8A:10 a=BLceEmwcHowA:10 a=8nJEP1OIZ-IA:10 a=jlQXLrol4uzHsHrFRIAOVA==:17 a=-G-gkGdXAAAA:8 a=1VzFaLA7uGstTDCxPpUA:9 a=JBDg6Qq8s8ekbNl0RukA:7 a=wPNLvfGTeEIA:10 a=x5RpzbVwkgAA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Received: from unknown (HELO D420) ([24.77.13.76]) by pd6ml3no-dmz.prod.shaw.ca with SMTP; 25 Apr 2012 09:11:58 -0600 Message-ID: <98EDE81FC196430094E58830820A6828@D420> From: "George Weaver" To: , "Rob Richardson" References: <20120425135420.91A461E62E82@mail.postgresql.org> <1335362750.25657.YahooMailRC@web83604.mail.sp1.yahoo.com> <542B943ED5D72E408BF9CBBD61ABC94D52EB6956@VA3DIAXVSC31.RED001.local> <1335363910.22996.YahooMailRC@web83603.mail.sp1.yahoo.com> <542B943ED5D72E408BF9CBBD61ABC94D52EB6962@VA3DIAXVSC31.RED001.local> <1335365560.94781.YahooMailRC@web83606.mail.sp1.yahoo.com> Subject: Re: How can I keep an OdbcDataAdapter from using fully qualified tble names? Date: Wed, 25 Apr 2012 10:12:03 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Pg-Spam-Score: 0.4 (/) X-Archive-Number: 201204/24 X-Sequence-Number: 10838 >----- Original Message ----- >From: Rob Richardson >The issue is that ADO.Net's OdbcDataAdapter object automatically expands >the table name "MyTable" into "MyDatabase.public.MyTable", and PostgreSQL >cannot >handle that. I think you'll find that it is not ADO.Net's OdbcDataAdapter that expands the table name, but the CommandBuilder - I use ADO Net's OdbcDataAdapter extensively without problem, but I write my own OdbcCommands. George >In PgAdmin, "insert into cycle (cycle) values ('Another cycle')" succeeds, >but "insert into Anneal.public.cycle (cycle) values ('Another one')" fails >with >the cross-database references not implemented error. The OdbcDataAdapter >object >automatically converts a query of the first form into a query of the second >form, and I want to know how to stop it from doing that. >RobR