Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSRS Report - Dynamic Connection String and Parameters

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

like image 754
user2963175 Avatar asked Nov 07 '13 03:11

user2963175


2 Answers

You should make sure that your datasource is embedded in the report.

And you can set your Connection string dynamically using an expression.

DataSource Setup

There is some more information on dynamically setting connection strings Here

like image 145
Sam Avatar answered Oct 24 '22 12:10

Sam


You can use parametr and experssion for connection string of datasource

="Data Source=Server;User ID=sa;Password=sa;Initial Catalog="+Parameters!Database.Value
like image 5
Georgy Grigoryev Avatar answered Oct 24 '22 14:10

Georgy Grigoryev