Why can we not execute a stored procedure inside a function in SQL Server

前端 未结 7 1524
情话喂你
情话喂你 2020-12-17 02:23

Why can we not execute a stored procedure inside a function when the opposite is possible?

7条回答
  •  天命终不由人
    2020-12-17 02:56

    I suspect this is because the execution of a function is not supposed to modify data in any way, and allowing you to run a stored procedure would let you do this...

提交回复
热议问题