We have a SP that returns one column from one row. It is called from within another SP via EXEC. I am trying to assign the returned value to a variable, but the variable is always 0 (default for type).
exec @myVar = usp_my_sp @p1, @p2
A different table needs to be updated with the returned...
Howdy all,
in a new stored procedure, i want to so a 'select ID from table' to get all of the IDs in the table, and then run an existing SP for each ID. Seems simple enough, but then so am I.
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.