SSRS Report - Dynamic Connection String and Parameters - reporting-services

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

You should make sure that your datasource is embedded in the report.
And you can set your Connection string dynamically using an expression.
There is some more information on dynamically setting connection strings Here

You can use parametr and experssion for connection string of datasource
="Data Source=Server;User ID=sa;Password=sa;Initial Catalog="+Parameters!Database.Value

Related

How to Pass DB Connection string as parameter in SSRS through URL

Our application is in .net and we are required to embedd and show case the SSRS reports from the .net application. Embedding was succesfull, now the data source is required to be made dynamic based on the logged in user, there respective server IP, DB name, user name and password is supposed to be passed to the SSRS. How can we achieve this?
Would really appreciate any help.
Thanks
Trying to get the connection string as a parameter from the URL but we are not sure how to accept the parameter. where should we get the control from
Assuming you can get the datasource passed to the report as a string already, then you can do this, but you must use an embedded datasource, not a shared datasource.
When designing reports from scratch you'll need to set the datasource's connection string as normal, just so field lists etc. all work, then once you have the report working, edit the datasource and hit the [fx] button next to the connection string.
Then just select your passed in parameter like below where myConnectionString is the passed in parameter.

Error when trying to pass a value to a parameter via a URL in SSRS

I have a report in SSRS that has a drill-down report. I would like to have the action linking to the drill-down report open it in a new page.
I've used this expression as the action URL:
="javascript:void(window.open('server?ItemPath=%2fTimisoara%2fDrilldown%2fDrill01&ID=123', '_blank'))"
When trying to access the drill-down report I get the following error:
The ID parameter is missing value
You're not constructing your URL properly. For starters the server bit should actually be the name of the server (or the IP address) and you need to properly construct the URL including the http://
You can then construct your URL like so:
http://reportserver/ReportServer?/Path/To/Report/DrillDownReport&Param1=Value1&Param2=Value2
I recommend reading the following MSDN pages:
URL Access (SSRS)
Pass a Report Parameter Within a URL

Use existing parameters for Transfer SQL Server Objects Task (Initial Catalog missing?)

I'm setting up a Transfer SQL Server Objects Task and can't seem to specify existing Connection Managers for it. When parametrizing the Connection Managers it creates, there isn't an Initial Catalog parameter. My package is defined only for server/db/user/password parameters. How can I feed this thing a connection string without making it a parameter of the package? Make a sub-package and pass it a connection? Is there a better way? Maybe use a variable for the connection string parameter somehow?

Pass QueryString parameter to Reporting Services 2008 R2

I have a reporting service report that accepts a parameter. I am trying to pass the parameter as follows:
http://localhost/ReportsServer/Pages/Report.aspx?ItemPath=%2fSalesReports%2fReport1&CustomerID=3
The above seems not to work. Any idea?
Regards,
Try pointing to the server directly:
http://localhost/ReportsServer?%2fSalesReports%2fReport1&CustomerID=3

SSRS DateTime Parameter in URL

I am passing the following URL in order to load a report in SSRS. There are two parameters in the report:
http://servername/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fApplications%2fPersonnel%2fRptNameChange&ssn=#########&txtEffectiveDate=06/01/2012
Parameters
String - ssn
DateTime - txtEffectiveDate
However, when the page loads, it is as if the parameters are not recognized and it loads the page with empty fields in the parameters.
What is missing or incorrect about the URL? Thanks!
You're so close! You should be able to pull this off by changing Report.aspx to ReportViewer.aspx. For example, see below:
http://servername/Pages/**ReportViewer.aspx?**ItemPath=%2fReports%2fApplications%2fPersonnel%2fRptNameChange&ssn=#########&txtEffectiveDate=06/01/2012
I was calling the Report Manager URL, instead of the Web Service URL.
Here was the working version of the SSRS Url:
http://servername/ReportServer?/Folder1/Folder2/Folder3/
In order to complete the call to the SSRS Web Service Url, attach the report name and any parameters that are needed to run the report:
http://servername/ReportServer?/Folder1/Folder2/Folder3/ReportName&Param1=12345