I've looked all over but can't find a solid answer. I've got a
function that runs from a View and when the function runs the first
time it is calculating a Temperature for a group of Formulas. What I
want to do is calculate this temperature in the UDF on the first pass
and store it somewhere (table, global variable etc.). On every
execution after that I'd like to use the value stored so I don't have
to recalculate the value again for the specific group defined.
I've looked at storing the data in a table from the UDF but UDF's
don't support dynamic SQL statements and can't run a stored procedure.
The key here is we have a view that calls a UDF (user-defined
function). Using SQL 2000.
Any ideas would be very helpful. Thanks.
function that runs from a View and when the function runs the first
time it is calculating a Temperature for a group of Formulas. What I
want to do is calculate this temperature in the UDF on the first pass
and store it somewhere (table, global variable etc.). On every
execution after that I'd like to use the value stored so I don't have
to recalculate the value again for the specific group defined.
I've looked at storing the data in a table from the UDF but UDF's
don't support dynamic SQL statements and can't run a stored procedure.
The key here is we have a view that calls a UDF (user-defined
function). Using SQL 2000.
Any ideas would be very helpful. Thanks.
Comment