This document outlines how to use parameters and data filtration in SQL Server Reporting Services (SSRS) reports. It discusses using the AdventureWorks sample database with SSRS, designing queries to retrieve product category, subcategory, and product data, configuring cascading multi-valued parameters to filter the data, and displaying the selected parameter values in the report. Code examples are provided to retrieve the necessary data and configure the parameters.
1. SSRS
Parameters and Data Filtration
Rev 1407R04
Naji El Kotob
naji [@] dotnetheroes.com
www.DotNETHeroes.com
2. Outlines
Introduction to SSRS
AdventureWorks Database
Datasets
Multi-Valued and Cascading Parameters Report
Interactive DEMO
Q&A
References
3. Adventure Works Database
Adventure Works Cycles, the fictitious company on which the AdventureWorks
sample databases are based, is a large, multinational manufacturing
company.
http://msftdbprodsamples.codeplex.com/
9. ProductsDataSet
SELECT
Production.Product.ProductID
,Production.ProductCategory.Name AS [ProductCategory Name]
,Production.ProductSubcategory.Name AS [ProductSubcategory Name]
,Production.Product.Name AS [Product Name]
,Production.Product.Color ,Production.Product.ListPrice
FROM
Production.ProductSubcategory
INNER JOIN Production.Product
ON Production.ProductSubcategory.ProductSubcategoryID = Production.Product.ProductSubcategoryID
INNER JOIN Production.ProductCategory
ON Production.ProductSubcategory.ProductCategoryID = Production.ProductCategory.ProductCategoryID
WHERE
Production.ProductSubcategory.ProductSubcategoryID IN (@ProductSubcategoryID)