Query useing two databases in SQL Report Builder

Posted by user912447 on Stack Overflow See other posts from Stack Overflow or by user912447
Published on 2011-11-10T19:08:59Z Indexed on 2012/06/24 3:17 UTC
Read the original article Hit count: 174

I am new to SQL Server Report Builder 2.0 and I need to compare two different databases in one query. Basically I need to check if values from one database table exist in a different database's table.

I know I can add multiple Datasources to my report and access each one with Subreports, but each DataSet that I create can only have one query in it. So how can I go about using one query to access two databases?

Or if there is another way to somehow join my results from multiple DataSets, that would work too.

Also, the databases are on the same server.

© Stack Overflow or respective owner

Related posts about sql

Related posts about reportbuilder