I need to split a huge table in to chunks.
Fetching data from DB2 and processing in SSIS
iteration 1 : Get first 10 rows and process it
To benefit from this method in SSIS, you should follow these steps:
In OLEDB/ODBC Source, Set the Access mode to SQL Command and define an epxression similar to:
"SELECT * FROM MYTABLE ORDER BY ID_COLUMN
OFFSET " + (DT_WSTR,50)@[User::IncrementValue] + "
FETCH FIRST " + (DT_WSTR,50)@[User::IncrementValue] + " ROWS ONLY"
The following answer is a step by step guide to load data by chunks from SQLite, you can follow it just change the SQL Command syntax as mentioned: