?
Solved

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

Posted on 2011-10-03
4
Medium Priority
?
750 Views
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

Olivier
0
Comment
Question by:OliShim
  • 3
4 Comments
 

Author Comment

by:OliShim
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
0
 

Accepted Solution

by:
OliShim earned 0 total points
ID: 36981276
Update
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.
0
 

Author Closing Comment

by:OliShim
ID: 37010556
Other solution was only partial
0

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