Suppose you are writing a function in SQL Server that conditionally calls itself. If you are writing a function from scratch, complete it and try to create it, SQL Server complains.
The complaint is that the function that you are calling from your function does not exist. Of course, this is not so, it is recursive!
To make it work, you must comment on the recursive call, create a function, uncomment the call, and change the function. You have to go through this stupidity if you ever change the parameters that the function takes (in which case it complains that there are too many or too few parameters in your new recursive call).
Is there any way around this?
source
share