I see your problem now and to be honest I had the same issue the first time
I tried to use a stored procedure in a report and the solution isn't exactly
obvious. The problem for me was using the wizard to create a report and then
putting in a line like you have below as my query (i.e. exec
mystoredprocedure my parameters) and that isn't the proper way to set it up.
With your rdl open in Visual Studio click on the DATA tab. At the top of
that screen you'll see Dataset: with your dataset listed in a dropdown menu.
With SQL reporting services you can have multiple datasets for a datasource
and that's the part that confused me. In that dataset dropdown chose <New
Dataset...> . Once you are in the Dataset window on the first tab there is a
dropdown field called Command Type. Chose StoredProcedure for this field and
then put in the name of your stored procedure for the Query String without
using the exec and without including any parameters (example:
nameofmystoredprocedure).
Once you have that set you can click on the Parameters tab and set up the
parameters and map them to the proper report parameters.
Let me know if that works and if you need any more help.
Peace,
Dan
[quoted text, click to view] "Jacob A" <JacobA@discussions.microsoft.com> wrote in message
news:F5FDAD2B-4CF1-4830-9C8A-9BFCB5857AB9@microsoft.com...
> Thanks Dan. I have managed to display a date which is selected before the
> report is generated but I'm running into other problems. The report will
> not
> run without values for the parameters in the SP specified in the query
> string. So my query string looks like this:
>
> EXEC LTCTx.DBO.SPRPT_CLM_FacilityLOS '1', '1', '1', 'All', '10/1/2004',
> '12/31/2004'
>
> So the values that I select when the report is ran don't do anything but
> change the value displayed in the textbox, not actually sending the value
> to
> the stored procedure to retrieve data. I added the parameters to the
> report
> paramters window then in the field menu clicked Add.. Then selected the
> Calculated Field radio button. I click the expression button and then
> select
> the paramter from the list. I know this must be wrong since the textbox
> always defaults to writing =Sum(Fields!FromDate.Value). I have to manually
> delete the Sum and parentheses. It does the same thing if I select
> Database
> Field but will not display the value when the report is run. Sorry if my
> questions seem obvious, I have been working in RS for a week now, and
> this
> is my first encounter with databases and reports. Thanks for all your
> input.
>