I have a very long and very complex stored procedure that produces a dollar amount given parameterized values. I have inserted into a temp table all values that will be passed to the procedure. This temp table has one more column that I need to populate with the OUTPUT of the stored procedure. I'm having a hard time getting this to work. Below is a simple example of what I'm trying to do.
The procedure's logic returns @total=6. I have a temp table with fields such as,
I need to update the Total column with the output of the procedure using the first three columns as input.
Suggestions??
Thanks in advance.
-If it ain't broke, break it and make it better.
Code:
exec proc_AddItUp 1,2,3, @total OUTPUT
The procedure's logic returns @total=6. I have a temp table with fields such as,
Code:
FirstVal SecondVal ThirdVal Total
1 2 3
2 3 4
3 4 5
I need to update the Total column with the output of the procedure using the first three columns as input.
Suggestions??
Thanks in advance.
-If it ain't broke, break it and make it better.