Calling a Stored Proc from within a Stored Proc and returning a recordset

后端 未结 4 1425
情话喂你
情话喂你 2021-01-22 21:31

I have a Stored Procedure that rolls-back a series of operations. I want to call this from within another SP.

The problem is that the inner SP returns a record set with

4条回答
  •  醉梦人生
    2021-01-22 22:19

    The other option is to convert the stored procedure that returns a recordset into a function that returns a table.

    Ant's approach is probably best if you want to minimize the changes to your system.

    Normally you would use a temporary table for that approach since you can't use an exec statement to insert into a table variable.

提交回复
热议问题