![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Apparently DTS already keeps count of the rows it processes. I'll just bet there's some way of putting in a post-source or pump-complete handler that accesses that number, rather than keep my own count by incrementing a global on each row. I've only just been introduced to the mystery of the multiphase data pump, so, does anybody have the magic word on how to use it to capture the row count in one swell foop? Thanks. Josh |
#3
| |||
| |||
|
|
This is a very quick example for you Function Main() dim tsk set tsk = DTSGlobalVariables.Parent.Tasks("DTSTask_DTSDataPu mpTask_1").CustomTask DTSGlobalVariables("RowsSuccess").Value = tsk.RowsComplete DTSGlobalVariables("RowsBad").Value = tsk.RowsInError MsgBox "Success = " & DTSGlobalVariables("RowsSuccess").Value & " and Bad = " & DTSGlobalVariables("RowsBad").Value Main = DTSTaskExecResult_Success End Function |
![]() |
| Thread Tools | |
| Display Modes | |
| |