User Defined Function
Why can't we call Stored Procedure from UDF??
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vikram AgrawalRank #4,713 · 329 reputationPosted Feb 9, 2015, 5:46 PM EST
Hi Pramod,
As we know we can not perform any DDL,DML operation inside a function except Select and also we can not use any error handling & transactions inside this. But we can do all these operations inside Stored Procedure. So if we call any SP inside UDF then there are chances for occurring all these operations.
That is why sql not allows us to call any SP inside UDF
Thanks