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 thingswhat if change later writes?
can't schema-bind udf stored procedureerror throwing/handling state change if stored procedure read only
this how sql server behaves reasons
Comments
Post a Comment