Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How-to return calculated values from a called SP

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
0
Can someone please reply w/ example syntax on how to receive calculated variables from an invoked SP. DESCRIPTION:

sp_caller invokes sp_calc_values (passing @var1, @var2) via:
exec sp_calc_values @var1, @var2

sp_calc_values receives @var1, @var2 then calculates @var3, @var4

HOW does sp_caller receive the calculated values @var3, @var4 ???

thx in advance
 
create procedure sp_calc_values (@var1 int, @var2 int, @var3 int output, @var4 int output)
as
Your calculation here.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top