Reputation: 81
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
Upvotes: 8
Views: 22010
Reputation: 873
You can use parametr and experssion for connection string of datasource
="Data Source=Server;User ID=sa;Password=sa;Initial Catalog="+Parameters!Database.Value
Upvotes: 5