![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have dataflow where rows are moved from OLEDB source to OLEDB destination by bulks defined in dynamically generated select statement within source. SELECT TOP @batch_size Col1, Col2, Col3 FROM Table1 ORDER BY Col1 The requirement is to save the Col1 value of the last row. Theonly solution I found in Internet is to direct dataflow to Recordset destination, and then in ControlFlow continue to ForEachLoop over the recordset, using mapped variable. The biggest concern here is a preformance. Does anybody have any experience with similar king of task? Any suggestions/ideas are much appreciated. Thanks, Yuriy |
#3
| |||
| |||
|
|
I have dataflow where rows are moved from OLEDB source to OLEDB destination by bulks defined in dynamically generated select statement within source. SELECT TOP @batch_size Col1, Col2, Col3 FROM Table1 ORDER BY Col1 The requirement is to save the Col1 value of the last row. Theonly solution I found in Internet is to direct dataflow to Recordset destination, and then in ControlFlow continue to ForEachLoop over the recordset, using mapped variable. The biggest concern here is a preformance. Does anybody have any experience with similar king of task? Any suggestions/ideas are much appreciated. Thanks, Yuriy |
#4
| |||
| |||
|
|
I have dataflow where rows are moved from OLEDB source to OLEDB destination by bulks defined in dynamically generated select statement within source. SELECT TOP @batch_size Col1, Col2, Col3 FROM Table1 ORDER BY Col1 The requirement is to save the Col1 value of the last row. Theonly solution I found in Internet is to direct dataflow to Recordset destination, and then in ControlFlow continue to ForEachLoop over the recordset, using mapped variable. The biggest concern here is a preformance. Does anybody have any experience with similar king of task? Any suggestions/ideas are much appreciated. Thanks, Yuriy |
#5
| |||
| |||
|
|
I have dataflow where rows are moved from OLEDB source to OLEDB destination by bulks defined in dynamically generated select statement within source. SELECT TOP @batch_size Col1, Col2, Col3 FROM Table1 ORDER BY Col1 The requirement is to save the Col1 value of the last row. Theonly solution I found in Internet is to direct dataflow to Recordset destination, and then in ControlFlow continue to ForEachLoop over the recordset, using mapped variable. The biggest concern here is a preformance. Does anybody have any experience with similar king of task? Any suggestions/ideas are much appreciated. Thanks, Yuriy |
#6
| |||
| |||
|
|
I have dataflow where rows are moved from OLEDB source to OLEDB destination by bulks defined in dynamically generated select statement within source. SELECT TOP @batch_size Col1, Col2, Col3 FROM Table1 ORDER BY Col1 The requirement is to save the Col1 value of the last row. Theonly solution I found in Internet is to direct dataflow to Recordset destination, and then in ControlFlow continue to ForEachLoop over the recordset, using mapped variable. The biggest concern here is a preformance. Does anybody have any experience with similar king of task? Any suggestions/ideas are much appreciated. Thanks, Yuriy |
#7
| |||
| |||
|
|
I have dataflow where rows are moved from OLEDB source to OLEDB destination by bulks defined in dynamically generated select statement within source. SELECT TOP @batch_size Col1, Col2, Col3 FROM Table1 ORDER BY Col1 The requirement is to save the Col1 value of the last row. Theonly solution I found in Internet is to direct dataflow to Recordset destination, and then in ControlFlow continue to ForEachLoop over the recordset, using mapped variable. The biggest concern here is a preformance. Does anybody have any experience with similar king of task? Any suggestions/ideas are much appreciated. Thanks, Yuriy |
#8
| |||
| |||
|
|
I have dataflow where rows are moved from OLEDB source to OLEDB destination by bulks defined in dynamically generated select statement within source. SELECT TOP @batch_size Col1, Col2, Col3 FROM Table1 ORDER BY Col1 The requirement is to save the Col1 value of the last row. Theonly solution I found in Internet is to direct dataflow to Recordset destination, and then in ControlFlow continue to ForEachLoop over the recordset, using mapped variable. The biggest concern here is a preformance. Does anybody have any experience with similar king of task? Any suggestions/ideas are much appreciated. Thanks, Yuriy |
#9
| |||
| |||
|
|
I have dataflow where rows are moved from OLEDB source to OLEDB destination by bulks defined in dynamically generated select statement within source. SELECT TOP @batch_size Col1, Col2, Col3 FROM Table1 ORDER BY Col1 The requirement is to save the Col1 value of the last row. Theonly solution I found in Internet is to direct dataflow to Recordset destination, and then in ControlFlow continue to ForEachLoop over the recordset, using mapped variable. The biggest concern here is a preformance. Does anybody have any experience with similar king of task? Any suggestions/ideas are much appreciated. Thanks, Yuriy |
#10
| |||
| |||
|
|
Hello Yuriy: Seems to me you can get this value using an Execute SQL Task on your Control Flow: SELECT MAX(Col1) FROM (SELECT TOP @batch_Size) Col1 FROM Table1 ORDER BY Col1) AS x Set the Result Set of the task to single row, and in the ResultSet page, add a mapping, named 0 to a new package varialbe. -- Todd C [If this response was helpful, please indicate by clicking the appropriate answer at the bottom] "Yuriy Al" wrote: I have dataflow where rows are moved from OLEDB source to OLEDB destination by bulks defined in dynamically generated select statement within source. SELECT TOP @batch_size Col1, Col2, Col3 FROM Table1 ORDER BY Col1 The requirement is to save the Col1 value of the last row. Theonly solution I found in Internet is to direct dataflow to Recordset destination, and then in ControlFlow continue to ForEachLoop over the recordset, using mapped variable. The biggest concern here is a preformance. Does anybody have any experience with similar king of task? Any suggestions/ideas are much appreciated. Thanks, Yuriy |
![]() |
| Thread Tools | |
| Display Modes | |
| |