I am using SSRS (2k5) to report data from oracle. The purpose of the report is to process about 100 checks (when they are completed) on the data to ensure that they were entered correctly (and our software acts as intended). To achieve this, I created a package and a pipeline function in which the WITH statement was executed. An approximate package created in Oracle is as follows:
WITH A as (select stuff from X), B as (select stuff from Y join X), C as (select stuff from Z join X)
Subquery1
Union
Subquery2
Union
...
Subquery100
I call this package function directly from SSRS using table (). Everything works fine for a while. However, if I run it later, I get an error message:
ORA-32036: unsupported case for inserting query name in WITH clauseORA-6512: in "[function name]"
However, if I open Oracle SQLDeveloper and run the function, go back to SSRS, everything works fine (for a while).
I understand that I am probably angry at my nested WITH clauses, but what can make it work for a while, and then not soon afterwards? Note that it always works in SQLDeveloper.
Thanks in advance for your help!
source share