hi
i have stored procedure without parameters and i need to assign the result of this procedure to a variable in a script/another sp
using
exec @var = sp_name
returns, as it should, the return code, and i just can't figure out a solution how to assign the sp result to the variable
i can't change the sp
1. to have an output var
2. to set the result as a return code
so if somebody knows how to do that please help
thanx
i have stored procedure without parameters and i need to assign the result of this procedure to a variable in a script/another sp
using
exec @var = sp_name
returns, as it should, the return code, and i just can't figure out a solution how to assign the sp result to the variable
i can't change the sp
1. to have an output var
2. to set the result as a return code
so if somebody knows how to do that please help
thanx