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

前端 未结 7 1525
情话喂你
情话喂你 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:51

    Some restrictions are their for functions,like (i) it should not change any table structure .It should readonly table. But Stored Procedure can change. Stored procedure can do any changes. So we cant call a Stored Procedure from function.

提交回复
热议问题