Given ltn's answer, you can limit the lines in SSIS.
The design will look like

Step 1: Create Variables
Name DataType Count int Initial int Final int
Step 2: for the first SQL execution task, write sql to store the counter
Select count(*) from YourTable
On the General tab of this task, select ResultSet as Single Row .
On the ResultSet tab, display the result in a variable
ResultName VariableName 0 User::Count
Step 3: In the For Loop container, enter an expression as shown below.

Step 4: Inside the for loop, drag the SQL Task and write the expression 
In the parameter display, map the variable initial
VariableName Direction DataType ParameterName ParameterSize User::Initial Input NUMERIC 0 -1
Result Tab
Result Name Variable Name 0 User::Final
Inside DFT, you can write sql to get specific rows

Click "Options" and select the variable initial and FINAL
source share