hi all, i am trying to create a table valued <u>SPLIT </u>function that uses CTE's recursive functionality to get records from the user parameters. the function is returning the values for parameter as expected if the parameter value (accounts) count is less than 100 and if the number of user parameter (accounts) are more than 100 then the function is failing and returning an error message: <b>maximum recursion 100 reached.</b> If anyone can give a solution or a better method to implement the same logic is appreciated.
;WITH CTE AS ( --select ) SELECT FROM CTE OPTION (MAXRECURSION 0) --here!
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)