>I have a function do a calculation, I am calling this function by select statement, on the ‘parm’ table some parameters needed for the calculations. This table schema could be change so i am try to read the file schema before to use the table
Why you can not just pass parameters to your function for calculation? Why this function needs to depend on the table parameter? Can you just pass fields' values instead?
If it's not broken, fix it until it is.
My Blog