Re: Utilizing Return values from Stored Procedure
From: Karl Gram (NOSPAMkarl_at_gramonline.nl)
Date: 03/16/04
- Next message: Mike G: "Re: Stored procedres"
- Previous message: Jacco Schalkwijk: "Re: Utilizing Return values from Stored Procedure"
- In reply to: Keith: "Utilizing Return values from Stored Procedure"
- Next in thread: Uri Dimant: "Re: Utilizing Return values from Stored Procedure"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 16 Mar 2004 15:31:14 +0100
Hi Keith,
Specify that the procedure parameter is an OUTPUT paarmeter. You must also
specify this in the parameter definition of the procedure itself:
Declare @Column char(15), @MHRID int
Select @Column='MHRID'
exec spLocal_HomeGetNextID @Column OUPUT, @MHRID
-- HTH Karl Gram http://www.gramonline.com "Keith" <anonymous@discussions.microsoft.com> wrote in message news:de8701c40b60$66365820$a301280a@phx.gbl... > I'm executing a stored procedure from within a stored > procedure. The sp that is being called has a return > parameter associated with it. I need to be able to use > that return parameter in the calling sp. > > In my code below: I supply a column name > (@Column='MHRID'), and the sp returns me the nextid > (@MHRID) > > ***************************************************** > Declare @Column char(15), @MHRID int > Select @Column='MHRID' > exec spLocal_HomeGetNextID @Column, @MHRID > ***************************************************** > > I just can't figure out the correct syntax / method of > using the returned parameter. > > (Please don't comment on why I'm assigning ID's in this > manner ---that's a different issue) > > Thanks, > > > Keith >
- Next message: Mike G: "Re: Stored procedres"
- Previous message: Jacco Schalkwijk: "Re: Utilizing Return values from Stored Procedure"
- In reply to: Keith: "Utilizing Return values from Stored Procedure"
- Next in thread: Uri Dimant: "Re: Utilizing Return values from Stored Procedure"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|