Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

syntax error for option(maxrecursion 0)

$
0
0

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


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>