When running the report getting below error while report is trying to execute the SQL script
An error has occurred during report processing. (rsProcessingAborted)
Cannot read the next data row for the dataset .... (rsErrorReadingNextDataRow)
The statement terminated. The maximum recursion 100 has been exhausted before statement completion.
max recursion error is also a SQL error. Add below code at the end of the script which will resolve the issue.
Select
-----------------
From Employee
where
--------------
option (maxrecursion 0)