Hi ,
I have two oledb source in the DataFlow
Lets say
SourceA- which points to DB2 database with huge volume of data (Select Contractid,PolicyID from Policy )
SourceB - Which points to MS Sql Server data (SELECT Contractid from AdhocTable)
So what we are doing is we are joining the two oledb source to get rows from policy by joining with AdhocTable with Contractid
but this causes performance issue bcoz DB2 has large volume of data..
So what we plan of doing is
build a query for SourceA oledb source based on the result of Contractid from AhocTable
For example if the AdhocTable has following records
AdhocTable sample records
C1
C2
C3
C4
C5
I need to build the following query for the SourceA oledb source
Select Contractid,PolicyID from Policy where Contractid in (C1,C2,C3,C4,C5)
this will filter data in the DB2 itself which will improve the performance and it will avoid the buffering in the SSIS.
Help me how to do that......with some code
ilikemicrosoft