469,647 Members | 1,789 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,647 developers. It's quick & easy.

Query multiple tables from diffrent database in reporting server

Hi,

I'm quite new with Reporting server 2005.

I'm wondering if there is a way to write a select query that will get the data from 2 diffrent tables located in 2 diffrent database box.

for example

select * from employee
where category in (select * from category);

where employee table is located in PRODBA1 database and category is located on PRODBA2 database.

Thanks,

Erwin
Sep 28 '07 #1
1 1994
ck9663
2,878 Expert 2GB
Hi,

I'm quite new with Reporting server 2005.

I'm wondering if there is a way to write a select query that will get the data from 2 diffrent tables located in 2 diffrent database box.

for example

select * from employee
where category in (select * from category);

where employee table is located in PRODBA1 database and category is located on PRODBA2 database.

Thanks,

Erwin
use the table "fullname"...
Expand|Select|Wrap|Line Numbers
  1. select * from PRODBA1.dbo.employee 
  2. where PRODBA1.dbo.employee.category in  (select * from PORDBA2.dbo.category)
Sep 28 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by wimmie | last post: by
2 posts views Thread by RJ | last post: by
3 posts views Thread by mel_palmeruk | last post: by
1 post views Thread by Sagaert Johan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.