Msg 701, Level 17, State 123, Line 1
There is insufficient system memory to run this query.
I have a query that uses Table-Valued function. I am calling the function several times.
Does this error mean I am running out of stack space? Or can I tune my SQL box memory settings to fix this? Any ideas?
I have resolved this by redesigning my query to use ‘Multi-Statement Function’
This type of TVF apparently creates a temporary table on disk, thus does not suffer from running out of memory.
Thanks