Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 218719F946C for ; Tue, 19 Dec 2006 06:19:39 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 16840-05 for ; Tue, 19 Dec 2006 06:19:20 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by postgresql.org (Postfix) with SMTP id 28D2E9F9357 for ; Tue, 19 Dec 2006 06:19:22 -0400 (AST) Received: (qmail invoked by alias); 19 Dec 2006 10:19:21 -0000 Received: from ktbl.heagmedianet.de (EHLO PCMELZER) [213.188.107.46] by mail.gmx.net (mp047) with SMTP; 19 Dec 2006 11:19:21 +0100 X-Authenticated: #17979613 From: "Peter Neu" To: Cc: "'Roland Walter'" Subject: Re: Efficient Insert statement for one record into multiple Date: Tue, 19 Dec 2006 11:18:36 +0100 Message-ID: <00f201c72357$0ba220d0$bcc8a8c0@PCMELZER> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4586C04D.5070008@gmx.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Thread-Index: AcciwMqDZQE5Npm4QdSmojZYce60+AAlaOxg X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=AWL, BAYES_50, SPF_PASS X-Spam-Level: X-Archive-Number: 200612/92 X-Sequence-Number: 16324 Hello, the insertion within the same connection objects works just fine. ;o) One thing which still keeps me thinking is how should I handle duplicate key exceptions when it happens in the first insert? Should I just close the connection object in the catch clause when this happens in the first statement so the second statement hits an AlreadyClosedConnectionException? Cheers, Pete