Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 74924 invoked from network); 13 Apr 2006 14:46:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Apr 2006 14:46:57 -0000 Received: (qmail 86016 invoked by uid 500); 13 Apr 2006 14:18:17 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 85991 invoked by uid 500); 13 Apr 2006 14:18:17 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 85979 invoked by uid 99); 13 Apr 2006 14:18:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Apr 2006 07:18:16 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of m.v.lunteren@gmail.com designates 64.233.166.179 as permitted sender) Received: from [64.233.166.179] (HELO pproxy.gmail.com) (64.233.166.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Apr 2006 07:18:16 -0700 Received: by pproxy.gmail.com with SMTP id t32so1889351pyc for ; Thu, 13 Apr 2006 07:17:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=lnVGIWT7HLyP0nDw0ANOOIo5EJzicZMrEnu9xNBnXFY0ZmLJX3Mk83oz+wi7YqGD7ZDCyrU5MGC9kZiiWnqFsvAqLor/3yc2dvx5JjRWBTEIvVj4NlPXLNXPSKNqGkh6bpTX7fHtQZEwSPazpXReuN6WVzUXcUG/W6K+8jlKtcc= Received: by 10.35.81.10 with SMTP id i10mr89257pyl; Thu, 13 Apr 2006 07:17:55 -0700 (PDT) Received: by 10.35.101.2 with HTTP; Thu, 13 Apr 2006 07:17:55 -0700 (PDT) Message-ID: Date: Thu, 13 Apr 2006 07:17:55 -0700 From: "Myrna van Lunteren" To: "Derby Discussion" Subject: Re: Run Procedure Switch from sqlserver to apache derby !! In-Reply-To: <416061d0604122238p2882e67need038d25b8d41ec@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_21537_29210992.1144937875738" References: <416061d0604122238p2882e67need038d25b8d41ec@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_21537_29210992.1144937875738 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/12/06, Dheeraj Dhiman wrote: > > Hello !! > I want to switch from sql server to apache Derby for my project . > I wanna run a procedure like this in apache derby . > > create procedure testProcedure( @personid Integer ) > as > select fullName , fatherName, age, income, grosssalary from persons where > personid =3D @personid ; > > But it is not working . > How could i write this procedure in apache derby !! > > Thanks & Regards !! > Dheeraj Dhiman !! > Hi !! Dheeraj !! Dhiman !! Derby does not currently support sql procedures or functions. You can write a java function to do what you want, see for instance our manuals, (see the Documentation tab off the main Derby page.), the Frequently Asked Questions ( For instance: http://db.apache.org/derby/faq.html#null_args which points to: http://mail-archives.apache.org/mod_mbox/db-derby-user/200602.mbox/%3c4404E= 53D.1050605@apache.org%3e ) Finally, you can search through the derby archives, for instance using nabble, for examples of issues others have brought up in this area. Finally, please stop logging jira issues for questions, and please, please stop the annoying exclamation marks. Seeing you log a JIRA issue, and seeig those exclamation marks certainly made me less interested to answer your question, rather than more, so you'r= e achieving the opposite from what I assume you want to. Myrna ------=_Part_21537_29210992.1144937875738 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
On 4/12/06, = Dheeraj Dhiman <dheeraj.= dhiman@gmail.com> wrote:

Hello !!
I want to switch from sql server to  apache Derby for m= y project .
I wanna run a procedure like this in apache derby .

create procedure testProcedure( @personid Integer )
as
select ful= lName , fatherName, age, income, grosssalary from persons where personid = =3D @personid ;

But it is not working .
How could i write this procedure in apache d= erby !!

Thanks & Regards !!
Dheeraj  Dhiman !!


Hi !! Dheeraj !! Dhiman !!
 
Derby does not currently support sql procedures or functions.
 
You can write a java function to do what you want, see for instance ou= r manuals, (see the Documentation tab off the main Derby page.), = the Frequently Asked Questions (
which points to:
 
Finally, you can search through the derby archives, for instance = using nabble, for examples of issues others have brought up in this area.
 
Finally, please stop logging jira issues for questions, and pleas= e, please stop the annoying exclamation marks.
 
Seeing you log a JIRA issue, and seeig those exclamation marks ce= rtainly made me less interested to answer your question, rather than more, = so you're achieving the opposite from what I assume you want to.
 
Myrna
------=_Part_21537_29210992.1144937875738--