Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

SSIS - OLE DB Query Editor Date Issue

$
0
0

I am new to SSIS and still finding my way around.

Currently I am using SSIS to do a bulk insert from an AS400 table using OLE DB.  The table I am pulling from returns 1.5 million records so I want to modify the package to filter down the number of records in order to speed it up.  I went into OLE DB Source Editor and changed the Data access mode from Table or view to SQL command.   

The AS400 source table has a Create Date Field (CRDT) and is a numeric format YYYYMMDD.  The simplified SQL Command is below.

SELECT. FIELD1, FIELD2, FIELD3, CRDT

FROM   CATALOG.TABLE1

WHERE FIELD1 = 90 and CRDT >= 20200703

I am trying to have the CRDT value to be 3 months prior to whatever the current date is when the package is run which would reduce the number of records returned to be around 50K.

I have no problem doing this in TSQL BUT SSIS seems to be a different animal.

Help!

Thank you in advance.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



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