Check perfmon to see if maybe the SQL server is just totally out of memory. There should be no logical difference between @table and #table, but the second actually creates a database object while the ...
In the previous issue of SQLTips we created a User-Defined scalar function (UDF) by leveraging the logic present in an RPG ILE service program. Now we will see how to build a "table function," which ...