70-466 · Question #110
A large manufacturing company has manufacturing plants in many states. Each state has a dedicated SQL Server instance that stores its manufacturing data. Each SQL Server instance is configured identic
The correct answer is C. Use a report-specific data source that defines an expression-based connection string based on the state parameter.. SSRS supports expression-based connection strings only in embedded report-specific data sources, enabling a single report to dynamically connect to different SQL Server instances based on a state parameter.
Question
Exhibit
Options
- AUse a shared data source that defines an expression-based connection string based on the state parameter
- BBuild a centralized data repository, schedule a regular Extract, Transform, and Load (ETL) process on all manufacturing data, and then use the repository to generate the report.
- CUse a report-specific data source that defines an expression-based connection string based on the state parameter.
- DBuild one report for each state and instruct users to execute reports as needed.
How the community answered
(45 responses)- A11% (5)
- B7% (3)
- C80% (36)
- D2% (1)
Why each option
SSRS supports expression-based connection strings only in embedded report-specific data sources, enabling a single report to dynamically connect to different SQL Server instances based on a state parameter.
SSRS shared data sources do not support expression-based connection strings - the connection string in a shared data source must be static, so this approach cannot dynamically target different SQL Server instances based on a parameter value.
Building a centralized data repository with a scheduled ETL process requires substantially more development and ongoing maintenance effort, directly violating the minimal development and maintenance requirement.
An embedded report-specific data source in SSRS supports expression-based connection strings, allowing the connection string to be dynamically constructed from the state parameter value to target the correct SQL Server instance at runtime. Because all instances share identical database structures, a single report serves all states without additional development, minimizing both development and ongoing maintenance effort.
Creating one report per state multiplies development and maintenance effort by the number of states and does not scale when new plants are added, contradicting the minimal effort requirement.
Concept tested: SSRS expression-based connection string with embedded data source
Source: https://learn.microsoft.com/en-us/sql/reporting-services/report-data/specify-credential-and-connection-information-for-report-data-sources
Topics
Community Discussion
No community discussion yet for this question.
