Quantcast
Channel: SQL Server Reporting Services FAQ
Viewing all articles
Browse latest Browse all 158

SQL Server Reporting Services FAQ

$
0
0

1.        Question 2: How to combine connecting string via parameter?

Answer:

You can include parameter reference in the data source connection string and allow the user to choose a data source for the report. For example, with an expression-based connection string, a user who is running a sales report can select a data source for a particular county before running the report.

The following example illustrates the use of a data source expression in a SQL Server connection string. The example assumes you have created a report parameter named ServerName:

="Data Source=" & Parameters! ServerName.Value & "; initial catalog=AdventureWorks" 


Microsoft Online Community Support

Viewing all articles
Browse latest Browse all 158


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>