I have 2 database in different servers: server 1 has the list of all the change list and server 2 has the list of all the files modified in the change list.
I need to combine the data from both the tables.
My first query is
Select changelist from database1;
This gives me the list of change list.
Now, for every changelist, i need to fire a query using
foreach change in changelist
select * from database2 where changelist= change;
Is there any way to send all the change list to the database at once and fetch the data in one single round trip?