ssis - Where Clause And Select in Two Seperate DBs on to seperate servers -


just state, making use of linked server connection not possible not have access change on 1 of servers. in mind, possible following:

select * tablea id in(select id tableb) 

where table b on server , table on server. thinking making use of ole db source conditional split whereby the

select * tablea

would stem other database on server don't have access change , the

where id in(select id tableb)

in form of conditional split. how approach this?

you question isn't clear, think wanting use ssis extract data id in table on database.

to this, add source each item, sort items primary / foreign key (you can in source query , set "is sorted" property more efficiently, it's bit more tricky). can use merge join component join 2 tables using inner join ids in both tablesenter image description here

edit:

to tune best performance, change key lookup source have following query:

select distinct id tableb order id 

set "is sorted" property on source , remove sort block follows. (you can add order , remove sort other source - remove sort block if source has been sorted on id)

the merge sort required both sides sorted on same key.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -