SQL Server procedure function value to used in select statement -
i created stored procedure p_calc_member_fee @id
member_fee
person , stored in temp
table.
and need extract value in select statement because need pass in member id member fee, created function named fn_get_member_fee
call procedure return member_fee
. seems cannot call function using
select fn_get_member_fee (@member.id) member
i got below error, please kindly help, thank you
msg 557, level 16, state 2, line 39
functions , extended stored procedures can executed within function.
you cannot execute sp function. there 1 exception insecure , highly not recommended (because of it's not provided here can found if required).
you can rewrite sp accept table input parameter or rewrite output multiple rows, can insert values temp table , use within query.
Comments
Post a Comment