Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 80894 invoked from network); 8 Aug 2005 14:59:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Aug 2005 14:59:42 -0000 Received: (qmail 56189 invoked by uid 500); 8 Aug 2005 14:59:40 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 56173 invoked by uid 500); 8 Aug 2005 14:59:40 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 56160 invoked by uid 99); 8 Aug 2005 14:59:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2005 07:59:40 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [203.124.136.17] (HELO mummrtg.mummrtg.ezbroadnet.com) (203.124.136.17) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2005 08:00:02 -0700 Received: from ind-spz7gwy003.mastek.com ([203.124.144.12]) by mummrtg.mummrtg.ezbroadnet.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 8 Aug 2005 20:29:31 +0530 Received: From ind-spz7gwy002.mastek.com ([172.16.32.49]) by ind-spz7gwy003.mastek.com (WebShield SMTP v4.5 MR1a P0803.345); id 1123513166793; Mon, 8 Aug 2005 20:29:26 +0530 Received: from ind-spz7exh003.mastek.com (unverified [172.16.32.129]) by ind-spz7gwy002.mastek.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Mon, 8 Aug 2005 20:29:26 +0530 Received: from IND-MHP1ECL001.mastek.com ([172.16.202.16]) by ind-spz7exh003.mastek.com with Microsoft SMTPSVC (5.0.2195.6713); Mon, 8 Aug 2005 20:29:26 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Executing a Stored Procedure returning rows from a Temporary table Date: Mon, 8 Aug 2005 20:29:26 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Executing a Stored Procedure returning rows from a Temporary table Thread-Index: AcWcKBRoQW2+67b9RS6F2QrPfkEklwAABcUQ From: "Priyesh Mashelkar" To: X-OriginalArrivalTime: 08 Aug 2005 14:59:26.0543 (UTC) FILETIME=[C52AB5F0:01C59C29] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Well, that was one of the alternatives. But going to the database twice is going to shoot up the performance. Furth= ermore, multiple clients may call this Stored Procedure and we would have t= o somehow separate the outputs for the various clients. But if the code iBATIS has is perfectly fine, we would definitely go for th= is option. -----Original Message----- From: Koka [mailto:226057@gmail.com] Sent: Monday, August 08, 2005 8:17 PM To: user-java@ibatis.apache.org Subject: Re: Executing a Stored Procedure returning rows from a Temporary table > I have a Stored Procedure which uses the input parameters passed to=20 > it and returns rows from a temporary table which it creates I'd avoid changing iBatis code. Instead I'd go for a workaround like executing procedure that fills the table (but does not return rows) and next (in the same transaction of course) just run ordinary select statement on tha table. Just one extra statement sounds to me far better than changing iBastis code Koka MASTEK "Making a valuable difference" Mastek in NASSCOM's 'India Top 20' Software Service Exporters List. In the US, we're called MAJESCO ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Opinions expressed in this e-mail are those of the individual and not that = of Mastek Limited, unless specifically indicated to that effect. Mastek Lim= ited does not accept any responsibility or liability for it. This e-mail an= d attachments (if any) transmitted with it are confidential and/or privileg= ed and solely for the use of the intended person or entity to which it is a= ddressed. Any review, re-transmission, dissemination or other use of or tak= ing of any action in reliance upon this information by persons or entities = other than the intended recipient is prohibited. This e-mail and its attach= ments have been scanned for the presence of computer viruses. It is the res= ponsibility of the recipient to run the virus check on e-mails and attachme= nts before opening them. If you have received this e-mail in error, kindly = delete this e-mail from all computers. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~