ssrs demo

8

Click here to load reader

Upload: hong-bing-li

Post on 23-Jun-2015

150 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: Ssrs demo

Hello There,

This quick demo illustrates how I used a stored procedure with multiple selected parameter values within a SSRS Report. This technique can be used in the situation where developers want to utilize stored procedures, either by creating from scratch or from existing legacy system, to develop new SSRS reports. It allows organizations to take advantage of the strength of stored procedures in maintenance and performance. I can also present a live demo, if requested.

Please let me know if you have any questions.

Thank you,

Hong-Bing Li

Page 2: Ssrs demo

Multiple Values are Selected within a Parameter

Page 3: Ssrs demo

Report Run with the Multiple Values Selected Parameter

Page 4: Ssrs demo

From this slide on, the demo will show How To’s - the following is the screenshot of a SSRS report which utilizes a Stored Procedure and a Parameter with Multiple Values Selected.

Page 5: Ssrs demo

How the Parameter Properties are Set

Page 6: Ssrs demo

The top form shows how the properties are set for dataset ‘dsProductResults’: query type is ‘Stored Procedure’ and name is ‘GetProducts’. The bottom form shows that ‘GetProducts’ is being tested in the query designer to ensure it works for the SSRS report.

Page 7: Ssrs demo

The following slide shows how the “GetProducts” stored procedure is run on the SQL Server side. It needs to be used in conjunction with a UDF function ‘CSVToTable’ which is created to parse SSRS parameter’s multiple selected values from a CSV string into Integer data types.

Page 8: Ssrs demo

---The End---