Hi friends today we will discuss about SSRS reports using Stored Procedure with Parameters.
Introduction
Hi friends today we will discuss about SSRS reports using Stored Procedure with Parameters.
- SSRS_Report is a stored procedure where it will accept two parameters 1st Startdate and 2nd Enddate . Based
on that selected date report will be fetched.
- Click on the file and select project to create a new project.
- Select the report server project wizard for creating SSRS report.
- Type the required project name in name text field….
- Click on Browse button and select the destination path to save the project.
- Click on ok button to save and proceed.

- Right click on the shared data source and create a new Add New Data Source.
Shared Data Source Properties:
- Type the Name as per the your requirement . Try to have a strong name .
- Click on edit Button and enter the connection string Means which server you want to connect
- Click on OK button to continue .
Connection Properties:
- Server Name : Select the server name from where you are generating report . Enter the server name in that drop down box .
- Log on to the Server : Select in which mode authentication is required . if you click on user windows Authentication then user name ,Password . if you click on use sql server authentication then we need to enter both user name and password .
- Click on Test Connection to test wither connection was established are not
- Once all the information is filled OK Button will be enabled.
Shared DataSets:
- Right Click on the Shared DataSets and click on Add New Dataset .
Shared Dataset Properties:
- Name : Enter the dataset Name.
- Select the Data Source. If we have multiple data source select the required one .
- Click on the Stored Procedure . and select the report required stored procedure .
- Select the Stored procedure name .
- Click OK button to continue .
Adding Report:
- Click on Add button to add a new report .
Add New Item- SSRS project :
- Click on report .
- Type the Report name as per your requirement .
- Click ok button to save and continue .
Steps for adding the table to report :
- Drag and drop the table over the design portion .
- Arrange the columns as per your requirement .
- Once the required columns are bind .. it looks like below .
Preview of the report:
- Click on the preview Button Select the start date .
- Select the end date.
- Click View Report .
Conclusion:
In this article we have seen how to create SSRS report from SQL Stored Procedure with Parameters.

About the Author