Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I "join" across datasources in SSRS?

I've got two datasources, one Oracle and one Sql Server. Due to circumstances that predate me (as in it was like this when I found it) some columns in the Oracle database contain PKs from lookup tables in the Sql Server database.

I am attempting to create a Sql Server Reporting Services report that will combine data from both the Oracle and Sql Server database; where the data to be reported is partially from Oracle but some of the values needs to be looked up in Sql Server.

I've got the datasources. I've got the DataSets. I just can't figure out how to show both datasets in the same tabular report.

Is this possible? If so how so? I'd rather not resort to a db link in one or the other databases as I'd like to handle this on the reporting side.

like image 533
dkackman Avatar asked Oct 14 '10 19:10

dkackman


1 Answers

I don't think you can join directly, but you might be able to add a subreport that would query the second datasource by using the foreign key from the first datasource as a parameter. See: How to: Add a Subreport and Parameters (Reporting Services).

like image 128
Joe Stefanelli Avatar answered Nov 09 '22 05:11

Joe Stefanelli