>“I still want to know why the SQL does not contain something like WHERE Amount > {?Amount}”
Let me reiterate.
In CR the statement you see in the [show SQL query] is used to tell CR what:
- fields you want to use
- tables those fields are in
- the relationship of those tables are.
The record filtration is ALL done at the client (this could be a CR server box) via parameters that are then used in the selection formula.
Why does the tool do this?
Because it was designed as a presentation layer for reporting not business rule processing (Though there has been some major improvement to this over the last three version). It was never really good at record filtration and aggregation.
That is why you want to use an OLAP datasource or move the demoralization and aggregation back to the DB server via stored procedure. Many organization cannot afford to configure and maintain a data warehouse so stored procedures are usually the way they go. In doing so your data is 99% the way you need to for final output.
If you are a small shop with a small DB, then you can get away with embedded CR record flirtation. AT 200K rows I think that you will be forced to ether process your reports in BATCH (at night) or be forced to move the business rule processing back to the server for timely reports.
If you are saying:
“Steve I can not use stored procedure, and a data warehouse project is out of the question. I need to do this ALL in CR!!!” Then I say good luck, and lets see what we can do to help… but I think you know my option in this matter.
[sig]<p>Steven Fowler<br><a href=mailto:info@fowlerconsulting.com>info@fowlerconsulting.com</a><br><a href=
Consulting</a><br>[/sig]