How to dynamically change a datasource in SSRS (MS SQL 2008)

Posted on 2011-10-03
Medium Priority
Last Modified: 2012-08-14
I am looking to dynamically change a datasource in SSRS (Sql Server Reporting Services) to connect to either one of 2 Oracle databases, based on a parameter.
I use the function icon when setting up my datasource, and enter the following function:

="Data Source="&Parameters!Source&";User Id=MyId;Password=MyPassword;"

The parameter source contains the TNS Name of my Oracle database

When I run the report, I get an error "Can not create connection to datasource, null password given, logon denied"...
So SSRS sees my connection string, but for some reason is not able to parse the username and password...

Thank you

Question by:OliShim
  • 3

Author Comment

ID: 36907114
Thank you
I tried the information from the links, but I can not pass a username and password for an Oracle connection...
I get the message indicated in my original post

Accepted Solution

OliShim earned 0 total points
ID: 36981276
I was able to get this to work. What you must select 'no credentials' on the datasource 'credentials...
Otherwise it will always look in 'credentials' instead of taking the ones entered in the connection string.

Author Closing Comment

ID: 37010556
Other solution was only partial

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question