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

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

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -