Why can't I use procedures inside functions in SQL Server? -


i know functions returns value , i'll make sp return value function returns , want calling inside function. how might this?

some thoughts after comments above

  • generally stored procedures can anything. safer disallow them

  • the engine can't reliably work out stored procedure does
    nesting of stored procedures, or recursion, or linked server calls or openquery calls, , many many other things

  • what if change later writes?
    can't schema-bind udf stored procedure

  • error throwing/handling state change if stored procedure read only

this how sql server behaves reasons


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -