Is there any way to call a stored procedure in multi scalar table-valued function like that?
Note: this query returns error:
You cannot execute a stored procedure in a function.