hi all,
i have a function and if i execute it within sp i'm getting recursion error
The statement terminated. The maximum recursion 100 has been exhausted before statement completion.
when i included option(maxrecursion 0) i'm getting syntax error
as Incorrect syntax near the keyword 'OPTION
..can anybody tell me where to place this option()
thanks in advance
my function looks like
lucky