Groups | Blog | Home
all groups > sql server reporting services > august 2004 >

sql server reporting services : When are Parameter Values applied to the DataSet?


datagal NO[at]SPAM msn.com
8/11/2004 2:49:42 PM
I'm fairly new to XML, but it looks to me like my parameters are not
being applied to the Select in the Where clause, but rather sometime
later (that I don't see right off). Could this explain why I can't
even get a report limited to just over 6k records to complete without
an OutOfMemory error?

The same report, run unlimited, in Cyrstal with over 425k records runs
fine. Both Crystal and RS are running locally.

Ideas?
Thanks,
Robert Bruckner [MSFT]
8/11/2004 3:56:16 PM
What is the structure of your report? Can you post your RDL?
Do you have SP1 installed?

--
This posting is provided "AS IS" with no warranties, and confers no rights.


[quoted text, click to view]

Bruce Loehle-Conger
8/12/2004 9:30:47 AM
Are you filtering or are you applying a parameter to your query. Does your
query look like this:
select * from sometable where modifieddate = @mydateparameter or if against
ODBC or OLEDB it would be
select * from sometable where modifieddate = ?

I guarantee you your query looks like the above, the parameter is being
passed to your query. I go against 10 million row tables (returning a few
hundred rows) and it would not function at all if it didn't do this.

If you are applying a filter then the filter brings the data over and then
filters it. Big difference (I don't tend to use filters at all).

One other point, are you getting this error when trying to get it out in PDF
or do you get it when viewing it in HTML (another way to look at it is do
you get this error when doing a preview in the development environment)

One last point, the data is not in XML. The data is in a dataset. The report
is defined in XML, that is all.

Bruce L-C

[quoted text, click to view]

datagal NO[at]SPAM msn.com
8/12/2004 9:51:28 AM
Robert:

At the moment the report is just a big table that does YTD and MTD
summarization at 4 Grouping levels.

The rdl is huge... Would it be appropriate to post it here?

Jody

[quoted text, click to view]
datagal NO[at]SPAM msn.com
8/12/2004 3:02:30 PM
I understand that the XML isn't the dataset... I was just trying to
use the XML to figure out how things were being handled. Sorry if I
was unclear.

You're right... I was filtering. The difference wasn't apparent right
off the bat. I foolishly assumed that if you put a parameter in and
connected it to a field, it would limit the query.

I removed all of the parameters and rebuilt them (just for the sake of
starting fresh) and added them to the query. The query runs fine on
it's own, but the report gives me the System.OutOfMemoryException
error again. Yes, I have SP1. Because I was also occasionally getting
System.StackOverflowException, I made sure that my 3 groups are
grouped and sorted by the same expression.

Now what? I've only been at this for 2 days, but I'm getting close to
scrapping the whole thing. We're evaluating to see if we can replicate
our Crystal Enterprise solution in RS and I'm not at all impressed so
far. I'm seeing many of the same issues I saw on my last contract
with another rdl based reporting product.

Jody

[quoted text, click to view]
Kevin B
8/16/2004 11:38:22 AM
Jody,

No revelation here. I have been dealing with "paid" support to tell me why
I can't do simple "Total"-ing functions in a report. I think someone was
smoking dope and forget to add it! It is very frustrating - even more so
because we use Crystal Reports and it works great with a better design time
environment.

We have been trying very hard to convert some of our CR reports to MSRS and
thus far, we can't get even the "simplest" reports to total correctly. What
a bunch of crap! It was suggested we may have to write code to do a running
total...forget it!

All of the aggregate functions seem to indicate they would accept a scope -
however, the only scope it will recognize is Nothing, the DataSet, or the
current scope. You can't specify a different scope.

....I'm getting a headache from looking at this...but it just helps justify
the CR licensing. BOTTOM LINE: You get what you paid for - and this was
free.

MICROSOFT: I sincerely want to use MSRS - but it just isn't ready - period.
Maybe a future version will be truly comparable to other report writers -
but for now, this is only for kids. ...sorry...

-KB




[quoted text, click to view]

AddThis Social Bookmark Button