all groups > sql server reporting services > november 2006 >
You're in the

sql server reporting services

group:

Stored Procedure Name As A Query Expression


Stored Procedure Name As A Query Expression kjward
11/8/2006 12:22:36 PM
sql server reporting services:
we have a number of reports which are visually identical, but draw data
from different tables via different stored procedures. each procedure
works fine. in order to consolidate a number of these reports, i have
given the users a drop-down selection of the report type they want to
see.

in the query definition i have the expression:
= "reports_dev.pkg_Reports_test.usp_Income_" & Parameters!type.Value
where the type may be "Posting", or "Deposit", etc.

each sproc's name corresponds to the above concatenated string. the
preview runs fine, but only the data from the first time it runs
continues to be displayed. no errors, it seems to like it alright. i
have echoed the sproc name in a text box for verification, and it
changes per the user's choice. but the data won't change accordingly,
even when i click the view report button or the refresh button.

is there a buffer that needs to be flushed between views, or something.


(btw, we are running oracle 9i, which hasn't in itself caused any
heartaches otherwise...in fact, all of these reports run perfectly if
the sproc named is hard-coded in the query definition without the
immediate iif statement)

thanks in advance
Re: Stored Procedure Name As A Query Expression Joe
11/8/2006 1:36:31 PM
....Or pass in a GUID that is ignored to ensure the cache won't pick it up.

[quoted text, click to view]
Re: Stored Procedure Name As A Query Expression kjward
11/8/2006 2:23:29 PM
i am running from the report designer preview, not "deploying" the
report to an rs server, as of yet, anyway.

i've been trying all sorts of things to get this to work, finally
deleting the dataset and re-creating it. now everything works as
expected. go figure...

problem solved. thanks for all the suggestions just the same.
Re: Stored Procedure Name As A Query Expression Bruce L-C [MVP]
11/8/2006 3:20:16 PM
You are seeing the development environment. It caches the data unless you
change the parameter. Using an expression like that it might not think it
needs to delete the cache. Look in your development directory for .rdl.data
file and delete it.

--
Bruce Loehle-Conger
MVP SQL Server Reporting Services

[quoted text, click to view]

Re: Stored Procedure Name As A Query Expression Bruce L-C [MVP]
11/8/2006 3:41:00 PM
Hmmm, this is not production. This is in development. The IDE sees no
parameter changes and does not refetch the data.


--
Bruce Loehle-Conger
MVP SQL Server Reporting Services

[quoted text, click to view]

AddThis Social Bookmark Button