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

2 Answers 2

8

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

Sign up to request clarification or add additional context in comments.

Comments

5

You can use parametr and experssion for connection string of datasource

="Data Source=Server;User ID=sa;Password=sa;Initial Catalog="+Parameters!Database.Value

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.