Why can we not execute a stored procedure inside a function when the opposite is possible?
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...