August 27, 2007 at 12:42 am
Hi All,
I want to make an storedprocedure.
I'll call some storedprocedure in this new storedprocedure.But,I don't know that How I can take the output field's value of the storedprocedure which I call from the new storedprocedure.
I mean;
EXEC @rc = [DANCA].[dbo].[sel_genelsatisfiyat3] @urunid, @ekurun, @firmid, @fiyatkategorisi, @orderdate, @bfiyat3 OUTPUT , @pbrm3 OUTPUT
How can I take the value of @bfiyat3 or @pbrm3 and use it in my new stored procedure?
Thank you very much.
Kind regards..
Aysegul
August 27, 2007 at 2:52 am
Create table #temp (<many column definitions here>
insert #temp
exec DANCA].[dbo].[sel_genelsatisfiyat3] @urunid, @ekurun, @firmid, @fiyatkategorisi, @orderdate, @bfiyat3 OUTPUT , @pbrm3 OUTPUT
Or write stored procedure as FUNCTION if all the SP do is to retreive records.
N 56°04'39.16"
E 12°55'05.25"
August 27, 2007 at 8:21 am
Peter has a great suggestion.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply