Question : Use stored procedure as dataset in SSRS

I am trying to build a report with SSRS. I need to use a stored procedure as the dataset. The stored procedure has one parameter. The report also have one parameter. I need to pass the report parameter's value to the stored procedure's parameter. How can I do it?

Answer : Use stored procedure as dataset in SSRS

Go to "Report Data" View

1. Right Click DataSet...
2. Select "DataSet Properties"...
3. Under Query Type select the "Stored Procedure" option button
3. Find your stored procedure name in drop down list.
4. Press "Refresh Fields"

You can view properties of the parameters associated with the report in the "Parameters" section of the "Report Data" tab
Random Solutions  
 
programming4us programming4us