Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS Lookup and Query is selecting all the table data

$
0
0

Hello

I have a Oracle connection and I'm trying to query it with the following SQL;

Select CS_ID,CS_TRAN_ID, CS_LOC_ID, CS_SALE_DATE,CS_GIFTAID,CS_STATUS,CS_CCT_ID
from Cybertill_Sales
Where CS_SALE_DATE >= '15-Jan-19'
and CS_SALE_DATE < SysDate
and CS_IMPORTED is null

When I use my query application for Oracle I get 40 records.

However if I try it in a SSIS Lookup it gets the whole table its like it is ignoring my where clause.

I even try to put the data into a Cache Transform so that I can use the data in my Lookup but still the OLE DB Source gets all the data in the table.

I'm working on test system at the moment and there is 10,000,000 records but on live there is even more records.  So I need a solution to the problem.

I have other Lookup that query Oracle without an issue, it just this one.

I'm using Visual Studio 2017, and on the latest version of oracle.

Regards

SQLSearcher99


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>