Is it possible to execute a stored procedure over a set without using a cursor?

前端 未结 7 927
遥遥无期
遥遥无期 2020-12-15 18:55

I would like to execute a stored procedure over each row in a set without using a cursor with something like this:

SELECT EXEC dbo.Sproc @Param1 = Table1.i

7条回答
  •  爱一瞬间的悲伤
    2020-12-15 19:01

    If possible I'd write a second version of the stored proc that reads from a temp table.

    If that's not possible than you're probably out of luck.

提交回复
热议问题