8

I am building a SSRS report portal to run various reports. One of the requirement is to pass the database connection string (server name, database, username and password) dynamically to the report.

Please let me know how to achieve this. I am new to SSRS report.

Thanks Sri

4

2 回答 2

8

您应该确保您的数据源嵌入在报告中。

您可以使用表达式动态设置连接字符串。

数据源设置

这里有一些关于动态设置连接字符串的更多信息

于 2013-11-07T08:18:59.347 回答
5

您可以将参数和表达式用于数据源的连接字符串

="Data Source=Server;User ID=sa;Password=sa;Initial Catalog="+Parameters!Database.Value
于 2013-11-07T10:00:48.253 回答